Let's keep playing!
In JavaScript, how do you decrement a variable by 1?
Correct! "x++" increments a variable by 1, and "x -= 2" would assign x the value of x - 2.
What symbol represents "or"?
Correct! && means "and" while ! means "not".
How do you get back the opposite value from an expression?
Correct! /= is used to assign the value of an operand to itself divided by another operand. === is a strict equals for both value and type.
How do you say that two things are not equal?
Correct! != means 2 operands are not equal in value, and !== means they are not equal in value or type.
What does "===" mean?
Correct! If the value of 2 operands is not equal, you would use "!=". == means 2 operands are equal in value.
How would you compound the operators for a variable that is multiplying itself with another operand?
Correct! %= would assign the value of remainder from x divided by y to the x variable, and += would assign the value of x + y.