Skip to content

Instantly share code, notes, and snippets.

@umair-khanzada
Last active November 29, 2016 06:36
Show Gist options
  • Select an option

  • Save umair-khanzada/0526b146cc69b77f44b819d1fc92e844 to your computer and use it in GitHub Desktop.

Select an option

Save umair-khanzada/0526b146cc69b77f44b819d1fc92e844 to your computer and use it in GitHub Desktop.
//Reverse string in javascript.
var str = "your string";
str.split('').reverse().join('');
//using ES6 is more easy.
[...str].reverse().join('');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment