Last active
August 28, 2018 04:07
-
-
Save lienista/c4356a11fdd57bda51f9c6354f673c80 to your computer and use it in GitHub Desktop.
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
| const recursiveReverseString = (originalString) => { | |
| return originalString ? recursiveReverseString(originalString.substr(1)) + originalString.charAt(0): ''; | |
| } | |
| let r = recursiveReverseString('hello'); | |
| console.log(r); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment