Supported globals
A list of globals that are considered safe and therefore allowed to use for user code that runs in our sandbox.
Math
Math is a built-in object that has properties and methods for mathematical constants and functions. It’s not a function object.
Math works with the Number type. It doesn't work with BigInt.
Details: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math
Date
JavaScript Date objects represent a single moment in time in a platform-independent format. Date objects contain a Number that represents milliseconds since 1 January 1970 UTC.
Details: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
Number
Number is a primitive wrapper object used to represent and manipulate numbers like 37 or -9.25.
Details: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number
BigInt
BigInt is a built-in object that provides a way to represent whole numbers larger than 253 - 1, which is the largest number JavaScript can reliably represent with the Number primitive and represented by the Number. MAX_SAFE_ INTEGER constant. BigInt can be used for arbitrarily large integers.
Details: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt
Boolean
The Boolean object is an object wrapper for a boolean value.
Details: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean
String
The String object is used to represent and manipulate a sequence of characters.
Details: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String