Domanda di colloquio di Yelp

In Javascript, what is the === symbol?

Risposta di colloquio

Anonimo

10 giu 2010

The triple equals, also found in PHP, it compares the type AND the value. For instance, if you need to check if a function is returning the boolean false or the number 0 you need to use ===, since the number 0 equates to false if you use ==.