Regular numbers lose precision above . For larger integers, use BigInt:
const big = 9007199254740993n // Note the 'n' suffix
const also = BigInt("9007199254740993")
BigInt can represent arbitrarily large integers. However, you can't mix BigInt and regular numbers in operations:
5n + 3 // Error!
5n + 3n // 8n (works)
BigInt is for specific use cases like cryptography or large IDs, not everyday math.