What value set here is "this"?

What mean “this” ? allString ?

console.log(this);

before your for loop and you will see what it is referring to in this case

1 Like

Thank you. :slight_smile:

Please reply what is your output, I’m pretty curious

1 Like

This function is counting latter in the string, it alert 5

1 Like