Tell us what’s happening:
Describe your issue in detail here.
my program is working perfectly fine but it doesn’t filll up nercessry condition could anyone just explain me
**Your code so far**
function reverseString(str) {
let word=str;
let newword="";
console.log(newword)
for(let i=word.length-1;i>-1;i--)
{
newword=word[i];
console.log(newword)
}
return newword;
}
reverseString("hello");
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36
Challenge: Reverse a String
Link to the challenge: