Skip to content

Instantly share code, notes, and snippets.

@dragonza
Created January 25, 2018 06:30
Show Gist options
  • Save dragonza/25cf92ceec9f7255c770f0388d5514e0 to your computer and use it in GitHub Desktop.
Save dragonza/25cf92ceec9f7255c770f0388d5514e0 to your computer and use it in GitHub Desktop.
String reversal 2 using reverse()
function reverse(str) {
return str.split('').reverse().join('');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment