Question d’entretien chez RTB House

What is the difference between == and === ?

Réponse à la question d'entretien

Utilisateur anonyme

25 avr. 2022

In JavaScript these are called equality operators and == converts the operands and tries to compare two operands of different types, while === means strict equality, e.g. it will return false if the values compared are of different types. Example: 2 == '2' => True 2 === '2' => False