TypeScript

Typescript Bigint

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.

Typescript Bigint Read More »

TypeScript Number Data Type

The Typescript number data type stores the numbers as a double-precision 64-bit number The Typescript has two data types to deal with the Numbers. One is a primitive number data type. The other one is BigInt, which is a recent addition. It does not have separate data types like integers, decimal, float as in the other languages. The number is a primitive data type. The Typescript also have Number object. We also have listed the difference between number Vs Number. The Numberobject has many properties & methods, which you can make use of and is listed at the end of the article.

TypeScript Number Data Type Read More »

Scroll to Top