01 / 04
You often want to ask "is it the same"
Bigger and smaller is not everything. Plenty of the time you want to know whether something is exactly the same. Is the password right? Is the chosen colour red?
For that you use ===. The trick is that you write three equals signs.
console.log(5 === 5);console.log(5 === 8);Result
true false