JavaScript number problem, no true integer
js number problem
// 2026-06-30 // this number does not change when you add one to it console.log(2 ** 53); // 9007199254740992 console.log(2 ** 53 + 1); // 9007199254740992 console.log(9007199254740992 === 9007199254740992 + 1); // true // add two works console.log(2 ** 53 + 2); // 9007199254740994
BigInt
the problem is solved by BigInt.
JavaScript sucks
Spec Reading
- Reading JavaScript spec notes (2015)
- JavaScript Grammar is Not Context-Free (2016)
- JavaScript Syntax Complexity: Lookahead (2015)
- JavaScript sort, is fragile, and most complex, convoluted (2017)
- JavaScript Spec, Term “instance” is Not Defined (2017)
- JavaScript Spec Change on Date Time Zone Default (2022)
- The term INSTANCE in Object Oriented Programing
sucks
- JavaScript Sucks (2017)
- JavaScript is Truly Bad Language (2025)
- JavaScript Sucks. Variations of Looping Thru Array (2025)
- Xah JavaScript Style Guide for FP
- JavaScript, Write All If Statement as If Expression