Puzzle 3 of 15 · Equality
Compare loose equality (==) and strict equality (===) between a number and a boolean. Predict the result of each comparison. Choose an output below, then check the explanation. No signup needed. Browse puzzles by topic →
1console.log(0 == false); 2console.log(0 === false);
Predict the console output. Each line is a separate log.
true true
false false
false true
true false