Back

Front End Developer

Questions

 71 Questions
Clicking on the following links will update the content below
Question 1 of 71

1. How will you differentiate between == and ===?


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.