IGT Solutions Interview Question

In javascript what is the difference between == and ===

Interview Answers

Anonymous

Jan 13, 2020

the == compare between the value only while === compare between the value and the data type.

4

Anonymous

Mar 4, 2020

In JS == compare between two values to be equal as value , eg: 1==“1” is true while === is comparing the value and data type , eg: 1===“1” is false