Triple-equals operator in Javascript

Note that ‘===’ checks for both the type and value, and is a stricter way to check, whereas ‘==’ does the type conversion of the operands and checks only for the values. I have a grand example to demonstrate this:

I hope the example would be more than enough to clarify. You can very well post in your queries as comments to this post.

Receive our updates to your inbox

Get more stuff like this
in your inbox

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.