Learn JavaScript
Number
5.6
Lesson

Checking equality

=== return true if two values are equal and they are of the same type. Otherwise, it returns false.

In the example given above, the second console.log statement returns false because one value is a number and the other is a string.