Correct Code Will Not Allow Passage

Tell us what’s happening:
The correct code, according to the video and to the “reveal answer,” will not allow passage to next challenge.

Your code so far


var myVar = 11;

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36

Challenge: Decrement a Number with JavaScript

Link to the challenge:

You changed this variable declaration from let to var. This is a change above the comment

and that is what is making the test suite unhappy.

You changed the code above the line that says “Only change code below this line”

1 Like

The video works with an older version of the challenge.

It is important that you respect the directions here

Otherwise, the test won’t pass.