Created
January 25, 2018 06:30
-
-
Save dragonza/25cf92ceec9f7255c770f0388d5514e0 to your computer and use it in GitHub Desktop.
String reversal 2 using reverse()
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 reverse(str) { | |
return str.split('').reverse().join(''); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment