I am confuse for these comparison and I don't know how can be happen. in bottom code when I compare x and y for less than or great than, it return false but when I compare them with equals they return true! do you know why this happen?
var x = { y: 10 };
var y = { y: 11 };
x < y; // false
x == y; // false
x > y; // false
x <= y; // true
x >= y; // true