1var a = 2;
2var b = 3;
3var c = 2;
4(a == b) // returns false
5(a == c) //returns true
6
1// falsy values: false, 0, -0, 0n, null, undefined, NaN, and the empty string ""
2console.log(Boolean(false)) // false
3console.log(Boolean(0)) // false
4console.log(Boolean(-0)) // false
5console.log(Boolean(0n)) // false
6console.log(Boolean(null)) // false
7console.log(Boolean(undefined)) // false
8console.log(Boolean(NaN)) // false
9console.log(Boolean("")) // false
10console.log(typeof Boolean("")) // boolean
11
12// truthy values: true, 1, -1, 1n, -1n, Infinity, -Infinity, " ", {}, []
13console.log(Boolean(true)) // true
14console.log(Boolean(1)) // true
15console.log(Boolean(-1)) // true
16console.log(Boolean(1n)) // true
17console.log(Boolean(-1n)) // true
18console.log(Boolean(Infinity)) // true
19console.log(Boolean(-Infinity)) // true
20console.log(Boolean(" ")) // true
21console.log(Boolean({})) // true
22console.log(Boolean([])) // true
23console.log(typeof Boolean([])) // boolean