[英]typeof gives me a number but console.log of the same variable gives me NAN how do i fix this
[英]How Do I get The Same Number In console.log?
let a = 15511210043330985984000000; console.log(BigInt(a).toString());
我如何獲得相同的值。
您需要將其作為字符串加載才能工作或在末尾附加n
let a = BigInt('15511210043330985984000000');
或者
let a = 15511210043330985984000000n;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.