Pregunta de entrevista de IGT Solutions

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

Respuestas de entrevistas

Anónimo

13 de ene de 2020

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

4

Anónimo

4 de mar de 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