Why it is not reversing the string?

  **Your code so far**

function reverseString(str) {
let str2=[];
for(let i=str.length-1;i>=0; i--){
return str2;


Challenge: Reverse a String

But str2 is an array, right?

1 Like

Thanks figured out my SILLY mistake

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.