gerd
11/5/2016 - 9:37 PM

From https://jsfiddle.net/

function reverseString(str) {   
  // 1st split into character array, then reverse the array, then join it back into a string   
  return str.split('').reverse().join('');   
} 
  
reverseString("hello");