This question tests the applicant's knowledge of the JavaScript language and their ability to spot the difference between two similar operators.
Overview
This question tests the applicant's knowledge of the JavaScript language and their ability to spot the difference between two similar operators.
Interview Expectations
A clear explanation of the difference between these two operators
An example of when to use each operator
Confidence in explaining this technical concept to any audience
Sample Answer
=== is a strict comparison operator that evaluates both operands and returns true if they're equal. == is a loose comparison operator that evaluates both operands and returns true if they're equal. I use === when I'm comparing objects or numbers for equality.