Javascript
100 Front End Interview Questions Challenge

Equality

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 

In JavaScript, === is a strict equality operator comparable to == in most high-level languages. It checks that both type and value are the same. On the other hand, == in JS will only check that values are the same, but not type.

This means that '5' == 5 would return true while '5' === 5 returns false.

 

I finished! On to the next chapter