Increment a Number with JavaScript (Bug?)

Hello! Why is my code failing? Isn’t this what is supposed?

Thank you!

Please post your actual code instead of a picture and a link to the challenge you are working on. Thanks

I’m not sure why you have var in your code, but that was replaced a while ago and is only in old (broken) solutions now.

I posted a picture so you guys can see the errors. Probably i have var because i already did this challenges but i’m doing it again because i hadn’t finished the course and i don’t remeber somethings.

I changed to “let” and it worked! Thanks

Pictures aren’t very helpful because we can’t copy-paste the code in your picture.

I’m glad its working now.