Bonfire: Reverse a String

function reverseString(str) {
str = str.split('').reverse().join(''); return str;
}
reverseString("hello", "");

One reply on “Bonfire: Reverse a String

Leave a Reply