Four is magic: Difference between revisions
m
→{{header|JavaScript}}: Added a test for implementation of BigInt (absent for example from JavaScriptCore at the macOS Catalina level)
m (→{{header|JavaScript}}: Added a test for implementation of BigInt (absent for example from JavaScriptCore at the macOS Catalina level)) |
|||
Line 771:
Utilizing the new [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt BigInt type] (added in ECMAScript 2019), and akin to the Python example, this implementation supports numbers as high as at least 10^3003, and could support even higher values by adding items to the dictionary.
To test whether a particular JavaScript interpreter implements
<lang javascript>Object.getOwnPropertyNames(this).includes('BigInt')</lang>
|