Decrement a Number with JavaScript - not working again

Decrement a Number with JavaScript - not working again
0

#1

Tell us what’s happening:

Your code so far


var myVar = 11;

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/decrement-a-number-with-javascript


#2

if you look at the example they dont want you to use myVar = myVar. Just the –
so it would be

myVar--;

#3

If you log myVar at the end of your script, you’ll notice it’s still 11.