Why is this code not passing? I have done as instructed

Tell us what’s happening:

Your code so far


var myVar = 11;

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0.

Challenge: Decrement a Number with JavaScript

Link to the challenge:

Remove

myVar = 10;
myVar = myVar--;

you should just write

myVar--;

@itsbob is right, there was a tiny mistake there. But just to make things a bit clearer for you, you could’ve done either this:

myVar = myVar - 1; //valid decrement operation

or this:

myVar--; // also valid decrement operation

Cheer mate! :+1:

Thanks guys, i was able to fix it eventually