Yelp interview question

In Javascript, what is the === symbol?

Interview Answer

Anonymous

10 Jun 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 ==.