Diferença entre == e === operadores.
/*
== in JavaScript is used for comparing two variables.
=== is used for comparing two variables,
but this operator also checks datatype and compares two values
*/
0 == false // true
0 === false // false, because they are of a different type
1 == "1" // true, automatic type conversion for value only
1 === "1" // false, because they are of a different type
null == undefined // true
null === undefined // false
'0' == false // true
'0' === false // false
Tiny Coders