Q3: What is the difference between == and === in JavaScript?
== (loose equality) performs type coercion to convert operands to a common type before comparing. === (strict equality) checks for equality without type conversion; both the value and the type must match.
Key Takeaways
==converts operands to the same type before comparison.===compares both value and data type without coercion.
Knowledge Check
What is the result of the comparison: [] == false?