Level 71
Level 73
31 words 0 ignored
Ready to learn
Ready to review
Ignore words
Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.
Ignore?
==
equal to
true
x == 5
true
x == "5"
equal value and equal type
===
false
x === "5"
!=
not equal
!==
not equal value or not equal type
true
x !== "5"
true
x !== 8
greater than
>
<
less than
greater than or equal to
>=
<=
less than or equal to
and
&&
or
||
not
!
Conditional (Ternary) Operator
a conditional operator that assigns a value to a variable based on some condition
variablename = (condition) ? value1:value2
Conditional (Ternary) Operator Syntax
&
AND
|
OR
~
NOT
^
XOR
<<
Left shift
>>
Right shift
if
used to specify a block of code, if a specified condition is true
else
used to specify a block of code, if the same condition is false
else if
used to specify a new condition to test, if the first condition is false
switch
used to specify many alternative blocks of code
if (condition) {code}
statement used to specify a block of JavaScript code.
if (condition) {code} else {code}
statement used to specify a block of code
if (condition) {code} else if (condition) {code} else {code}
statement used to specify a new condition if the first condition is false