We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 163de7e + 3e8c8bf commit a0b9606Copy full SHA for a0b9606
docs/proposals.md
@@ -565,7 +565,7 @@ typeof 123n // 'bigint'
565
566
### BigInt 对象
567
568
-JavaScript 原生提供`BigInt`对象,可以用作构造函数生成 BitInt 类型的数值。转换规则基本与`Number()`一致,将别的类型的值转为 BigInt。
+JavaScript 原生提供`BigInt`对象,可以用作构造函数生成 BigInt 类型的数值。转换规则基本与`Number()`一致,将别的类型的值转为 BigInt。
569
570
```javascript
571
BigInt(123) // 123n
@@ -577,7 +577,7 @@ BigInt(true) // 1n
577
`BigInt`构造函数必须有参数,而且参数必须可以正常转为数值,下面的用法都会报错。
578
579
580
-new BitInt() // TypeError
+new BigInt() // TypeError
581
BigInt(undefined) //TypeError
582
BigInt(null) // TypeError
583
BigInt('123n') // SyntaxError
0 commit comments