Question d’entretien chez IGT Solutions

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

Réponses aux questions d'entretien

Utilisateur anonyme

13 janv. 2020

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

4

Utilisateur anonyme

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