Loading…
A short voice session: one question, one follow-up, then instant feedback — up to 5 minutes.
== can convert types before comparing. === compares without type coercion. The results are true and false, respectively.
Loose equality applies conversion rules when operands have different types; in 0 == "0", the string is converted to a number. Strict equality sees a number and a string and returns false. Separate objects compare by identity with either operator: {} === {} is false. Use strict equality when you do not want implicit conversions to affect the comparison.