Created
July 16, 2018 05:01
-
-
Save Taimoormk/5bf8195d14bb4e115efbec2d6f4f1b64 to your computer and use it in GitHub Desktop.
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(string) { | |
return string.split('').reduce((reversed, character) => character + reversed, ''); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment