IGT Solutions interview question

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

Interview Answers

Anonymous

13 Jan 2020

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

4

Anonymous

4 Mar 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