Sollicitatievraag bij IGT Solutions

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

Antwoorden op sollicitatievragen

Anoniem

13 jan 2020

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

4

Anoniem

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