Created
February 17, 2018 08:33
-
-
Save harsharora04/70aba6047e42f383c6a37061c387fe7a 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 reverse = (str) => { | |
| return [...str].reverse().join("") | |
| } | |
| // a = "πππ€£π some random middle string π ππππππ" | |
| // reverse(a) = "πππππππ gnirts elddim modnar emos ππ€£ππ" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment