DEV Community

loading...

Discussion on: Javascript Questions

Collapse
develliot profile image
Develliot

It's not about matching type and value but matching a reference to the same object not an identical object.

For example

a = new Number(3);
b = new Number(3);
c = a

a === b // false
c === a // true