Skip to content

Instantly share code, notes, and snippets.

@tiberiur
Last active January 30, 2017 16:43
Show Gist options
  • Save tiberiur/a5f8f9445bb574e7d4e927faff792c42 to your computer and use it in GitHub Desktop.
Save tiberiur/a5f8f9445bb574e7d4e927faff792c42 to your computer and use it in GitHub Desktop.
[JS] Reverse a String
function reverseString(str) {
return str.split("").reverse().join("");
}
reverseString("hello")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment