Skip to content

Instantly share code, notes, and snippets.

Created December 7, 2015 00:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/c587a1cf664d8ca3f167 to your computer and use it in GitHub Desktop.
Save anonymous/c587a1cf664d8ca3f167 to your computer and use it in GitHub Desktop.
http://www.freecodecamp.com/jacobarriola 's solution for Bonfire: Reverse a String
// Bonfire: Reverse a String
// Author: @jacobarriola
// Challenge: http://www.freecodecamp.com/challenges/bonfire-reverse-a-string#
// Learn to Code at Free Code Camp (www.freecodecamp.com)
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