Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript long integer

// Use BigInt for long integers in JavaScript but note 
// you cannot use the strict equality operator to compare a 
// BigInt to a regular number because they are not the same type

BigInt("9007199254740995");    // → 9007199254740995n

// Great guide on BigInt here https://www.smashingmagazine.com/2019/07/essential-guide-javascript-newest-data-type-bigint/
Source by www.smashingmagazine.com #
 
PREVIOUS NEXT
Tagged: #javascript #long #integer
ADD COMMENT
Topic
Name
2+9 =