Pergunta de entrevista da empresa Ignite Solutions

In JavaScript, answer if the following expressions result in true or false (and explain your answer) a. “0” == 0 // true or false? b. “” == 0 // true or false? c. “” == “0” // true or false?

Resposta da entrevista

Sigiloso

6 de mar. de 2020

a. True (== compares only value) b. True (== also checks the length) c. False (value or length not equal to "0")