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--){
  str2.push(str[i]);
}
return str2;
}

reverseString("hello");

Challenge: Reverse a String

But str2 is an array, right?

1 Like

Thanks figured out my SILLY mistake