== vs ===

In Javascript, you’ll often see code like:

a == b;

a === b;

” == ” is used when you’re comparing two values irrespective of their data type. For eg.¬† 1 == ‘1’ — true

Whereas ” === ” is used when you’re comparing the values as well as their data types.

For eg. 1 === ‘1’ — false¬† and ‘1’ === ‘1’ — true.

Happy Coding!!