Last active
October 15, 2015 04:06
-
-
Save platypusrex/24fba3a9a6583355cffe to your computer and use it in GitHub Desktop.
Javascript - Reverse String
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
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