Let say we have two objects of type NumberInt in Mongo-Shell:
x = NumberInt(100)
y = NumberInt(100)
when I run the following comparisons, I am wondering why the last comparison is false?
x == 100 // True
y == 100 // True
x == y // False! Why?
I did however expect to get false by running the following lines:
x === y // False
x === 100 // False
x === 100 // False
which are false as expected. Any idea?