 BigInt 1/3
BigInt 1/3
BigInt:
In JavaScript, we have a BigInt data type in which we can assign the integer of arbitrary length to an integer.
We can create BigInt by placing the n at the end of the integer or we can simply call the BigInt() function that creates an integer of arbitrary length from a string.
123456789let bigint = 123456789n; console.log(bigint); let bigintFromString = BigInt("123456789"); let bigintFromInteger = BigInt(123456789); console.log(bigint); console.log(bigintFromString); console.log(bigintFromInteger);
Swipe to start coding
Create a BigInt() from the string “982945944” by using the BigInt() function and store it in the variable netWorth and display the value on the console.
Lösning
Tack för dina kommentarer!
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Awesome!
Completion rate improved to 2 BigInt 1/3
BigInt 1/3
Svep för att visa menyn
BigInt:
In JavaScript, we have a BigInt data type in which we can assign the integer of arbitrary length to an integer.
We can create BigInt by placing the n at the end of the integer or we can simply call the BigInt() function that creates an integer of arbitrary length from a string.
123456789let bigint = 123456789n; console.log(bigint); let bigintFromString = BigInt("123456789"); let bigintFromInteger = BigInt(123456789); console.log(bigint); console.log(bigintFromString); console.log(bigintFromInteger);
Swipe to start coding
Create a BigInt() from the string “982945944” by using the BigInt() function and store it in the variable netWorth and display the value on the console.
Lösning
Tack för dina kommentarer!
single