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.
1 parent 5c36d34 commit ebe73aeCopy full SHA for ebe73ae
JavaScript/9-bigint.js
@@ -33,8 +33,8 @@ console.log('BigInt(3n / 2n) =', BigInt(3n / 2n));
33
// SyntaxError: Cannot convert 1.5 to a BigInt
34
35
// console.log('BigInt(1.5) =', BigInt(1.5));
36
-// RangeError: The number 1.5 is not a safe integer
37
-// and thus cannot be converted to a BigInt
+// RangeError: The number 1.5 cannot be converted
+// to a BigInt because it is not an integer
38
39
console.log('2n > 1n =', 2n > 1n);
40
console.log('2n > 1 =', 2n > 1);
0 commit comments