let bool1 = true;
let bool2 = false;
if (1 > 0) {
}
if (1 > 0) {
} else {
}
if (1 > 0) {
} else if (2 > 0) {
} else {
}
if (1 > 0) {
} else if (2 > 0) {
} else if (3 > 0) {
} else {
}
>
<
>=
<=
==
===
!=
!==
if (1 > 0 && 2 > 1) {
}
if (1 > 0 || 2 < 1) {
}
if (!false) {
}
const myString = 'First';
switch (myString) {
case 'First':
// Insert code here
break;
case 'Second':
// Insert code here
break;
default:
// Insert code here
}
condition ? exprIfTrue : exprIfFalse
false
0
-0
0n
"", '', ``
null
undefined
NaN
document.all
// Any value not found in the list of falsy values is considered truthy.