Example BigInt trouble in JavaScript, if use simple number variable with large integer
let x = 9007199254740991; // source number

// expected: 9007199254740992 and result 9007199254740992. It's right.
document.write(`<p> ${x} + 1 = ${x + 1} </p>`);

// expected: 9007199254740992 but result 9007199254740992. It's wrong.
document.write(`<p> ${x} + 2 = ${x + 2} </p>`);

// expected: 9007199254740994 and result 9007199254740994. It's right.
document.write(`<p> ${x} + 3 = ${x + 3} </p>`);


External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.