re: How to reverse a string in JavaScript VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Have you looked at the performance impact of each method?
 

regular for loop will beat all these methods by huge margin
function reverse(s) {
var o = '';
for (var i = s.length - 1; i >= 0; i--)
o += s[i];
return o;
}

code of conduct - report abuse