Last active
March 6, 2019 01:22
-
-
Save anthonygharvey/241c2abc569b283149f6895909af3c3a 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 reverse(string) { | |
let answer = string.split('') // step 1 | |
answer.reverse() // step 2 | |
answer = answer.join('') // step 3 | |
return answer //step 4 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment