BigInt类型

208 阅读1分钟
 // 大整形  只能是整数
let n = 521n
console.log(n,typeof(n))

let n = 123
console.log(BigInt(n)) // 123n

console.log(BigInt(1.25)) image.png

image.png