Created
January 4, 2023 22:23
-
-
Save sondr3/ea833cdee862e03141ae77d7aab72cee to your computer and use it in GitHub Desktop.
hue hue
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 characters
const reverseString = (n) => { | |
for (var i = n.length - 1, o = ""; i >= 0; o += n[i--]) { } | |
return o; | |
} | |
console.log(reverseString("hello")); | |
console.log(reverseString("world")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment