Typescript BigInt Vs Number
In this article, we will show you the difference between BigInt and number data types. And also when to use the BigInt data type
In this article, we will show you the difference between BigInt and number data types. And also when to use the BigInt data type
The bigint is a new primitive type in Typescript. It is available only if you target esnext in tsconfig.json. it represents the whole number. It can hold numbers larger than 253 – 1. The BigInt uses the arbitrary-precision arithmetic. This article covers how to use bigInt, the arithmetic operations allowed, how to convert bigint to number and number to bigint, etc.