JavaScript bigint data type

JavaScript bigint data type


JavaScript bigint data type
JavaScript  BigInt data type is a numeric primitive in JavaScript that can represent integers with arbitrary precision. With BigInts, you can safely store and operate on large integers even beyond the safe integer limit for Numbers. Bitint provides a way to represent whole numbers larger than 253-1.
Syntax
BigInt( number ) 
or
Appending n to end of an integer literal
 
Example
Output