• Twitter
  • Facebook
  • Google+
  • Instagram
  • Youtube

February 10, 2019

BigInt

BigInt is a built-in object that provides a way to represent whole numbers larger than 2^53, which is the largest number JavaScript can reliably represent with the Number primitive.

BigInt(value);

Usages

const theBiggestInt = 9007199254740991n;

const alsoHuge = BigInt(9007199254740991); //9007199254740991n

const hugeString = BigInt("9007199254740991"); //9007199254740991n

const hugeHex = BigInt("0x1fffffffffffff"); //9007199254740991n

const hugeBin = BigInt("0b11111111111111111111111111111111111111111111111111111");//9007199254740991n

Type information

typeof 1n === 'bigint'; // true
typeof BigInt('1') === 'bigint'; // true

2 comments:

  1. Best bets for soccer today - Sports Toto
    Today, we're going 토토사이트 to tell goyangfc.com you a few key to checking into soccer betting apps. of the most popular soccer ventureberg.com/ betting options and which febcasino.com ones will

    ReplyDelete
  2. Among those sanctioned are also 76 members of the State Duma, Russia’s parliament. The sanctioned individuals voted "to recognize Donetsk and Luhansk as independent states,” the statement said.

    gamja888.COM
    youube.me
    instagrme.COM
    internetgame.me
    Instagrme.net
    instagrme.live
    Instagrm.me
    youubbe.me
    naverom.me
    facebokom.me

    ReplyDelete

Contact

Get in touch with me


Adress/Street

12 Street West Victoria 1234 Australia

Phone number

+(12) 3456 789

Website

www.johnsmith.com