JavaScript ten most important interview questions

1. Difference between double equal (==) and triple equal (===)

Double equal (==) check only value but triple equal (===) check value and variable type.

Example:

Double Equal (==)

Double equal check only value so the output is true.

Triple Equal (===)

5 is an int type and another “5” is a string type. Their data type is not similar that's why the output is false.