Increment with JS, looks right but won't allow me to continue

Tell us what’s happening:
Describe your issue in detail here.

Your code so far


var myVar = 87;

// Only change code below this line
myVar++;

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.51 Safari/537.36

Challenge: Increment a Number with JavaScript

Link to the challenge:

Don’t change the first line. You’ve changed let to var.

These tests can be very picky. It’s best to only change exactly what you are asked to change and nothing else.

I pressed the reset code thingy and it resets to var, not let. I just changed the line at the bottom.
but I did change the top part to let and it lets me through.
thanks

That’s strange. Here is the original code for me:

let myVar = 87;

// Only change code below this line
myVar = myVar + 1;

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