Created
April 13, 2018 15:18
-
-
Save theWhiteFox/5223241e21dcba9129a9ae5691bddb35 to your computer and use it in GitHub Desktop.
Reverse a string created by steTheWhiteFox - https://repl.it/@steTheWhiteFox/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 reverse(string) { | |
return string.split('').reverse().join(); | |
} | |
reverse('testing'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment