Created
April 23, 2018 19:29
-
-
Save kmarenov/b618c8e4ef9ac615d4e5855389dc45f9 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 => { | |
| let rev = ''; | |
| for (let i = str.length-1; i >= 0; i--) { | |
| rev += str[i]; | |
| } | |
| return rev; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment