rabbitrun
9/4/2016 - 8:22 PM

Reversing strings

Reversing strings

function reverseString(str) {
  var strArray = str.split("");
  strArray.reverse("");
  return strArray.join("");
}

reverseString("hello");