Pergunta de entrevista da empresa IG Group

What is the difference between '==' and '===' in JavaScript?

Resposta da entrevista

Sigiloso

29 de jul. de 2016

'==' tries to coerce one of the operands to match the other's type (for example: '5' == 5 will return TRUE...); '===' is more literal and compares the true types and values (...whereas, '5' === 5 returns FALSE).