3/14 help!


#1

// Write your loop below!
for (var i = 10; i < 1001; i+=10) {
console.log(i);
}
var condition = true;
while(9 + 10 = 21) {
console.log("You stupid")
condition = false;
}
I kept getting this error:
Oops, try again. It looks like you have an error in your code! Check the error message for more details: ReferenceError: Invalid left-hand side in assignment


#2

1

  Left
  9 + 10 = 21  <== you are trying to assign the 
                  **_number_ Value** 21 to the **_number_ Value** 19

ReferenceError: Invalid left-hand side in assignment

2

Try using the =while=-condition
like

while( condition ) {

#3

Thanks for the help! :smiley: