javscript .split().reverse.joni
snippet in javascript

javascrip reverse text

user6790

//more compact way: 
"my example text".split("").reverse().join("");

javscript .split().reverse.joni

user1372

"this is a test string".split("").reverse().join("");

javascript reverse string without reverse method

user9887

function reverse(str){  
  let reversed = "";      
   for (var i = str.length - 1; i >= 0; i--){         
     reversed += str[i];  
   }     
  return reversed;
}

reverse string js

user2316

const solution = (str) => str.split("").reverse().join("");