Why 888888888888888888888 equals 888888888888888900000 in JavaScript
console.log(888888888888888888888 === 888888888888888900000)
in chrome console
Why 888888888888888888888 equals 888888888888888900000 in JavaScript
console.log(888888888888888888888 === 888888888888888900000)
in chrome console
That is because integers can only be precisely represented in JavaScript up to 2^53 - 1
The problem is that, after 2^53 - 1, there is not enough bits to represent the number. So, when you set a higher number, you lose information and what you are actually storing in memory is not reliable. In your case, these 2 numbers, after converting to binary, are the same. That is why they are equal