1var isDay = false;
2if (!isDay) { //Will execute if isDay is false
3 console.log("It's night");
4}
1// === means equal value and equal type
2var x = 5
3
4// true
5x === 5
6
7// false
8x === "5"
1var x = 5;
2
3// === equal value and equal type
4// e.g. 1.
5x === 5 returns true
6
7// e.g. 2.
8x === "5" returns false
9
10// !== not equal value or not equal type
11// e.g. 1.
12x !== 5 returns false
13
14// e.g. 2.
15x !== "5" returns true
16
17// e.g. 3.
18x !== 8 returns true