Skip to content

Instantly share code, notes, and snippets. 's solution for Bonfire: Reverse a String
// Bonfire: Reverse a String
// Author: @twhite96
// Challenge:
// Learn to Code at Free Code Camp (
function reverseString(str) {
str = str.split('');
str = str.reverse();
str = str.join('');
return str;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment