Last active
January 30, 2017 16:43
-
-
Save tiberiur/a5f8f9445bb574e7d4e927faff792c42 to your computer and use it in GitHub Desktop.
[JS] Reverse a String
This file contains 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
function reverseString(str) { | |
return str.split("").reverse().join(""); | |
} | |
reverseString("hello") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment