Last active
December 18, 2022 18:31
Revisions
-
Hacking-NASSA-with-HTML renamed this gist
Dec 18, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ // function to reverse the order of characters in a word: function reverse(word) { let reversedWord = '' for (let i = word.length - 1; i >= 0; i--) { -
Hacking-NASSA-with-HTML created this gist
Dec 18, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ // function to reverse the order on characters in a word: function reverse(word) { let reversedWord = '' for (let i = word.length - 1; i >= 0; i--) { reversedWord = reversedWord.concat(word[i]) } return reversedWord } console.log(reverse('word')) // prints drow