JS Lib
Last updated
Was this helpful?
Last updated
Was this helpful?
This class provides essential JavaScript constants and utility functions like Infinity, NaN, and undefined, along with URI encoding/decoding (encodeURI, decodeURIComponent) and string parsing (parseFloat, parseInt). It includes utilities like isFinite and isNaN for value validation and supports dynamic code evaluation through eval.
,,,,,,,,,,,,,,,[Special Operators](./special operators.md),,,,,,
Numeric value representing infinity.
Value representing Not-a-Number.
The value undefined.
Decodes a URI previously encoded with encodeURI or another similar routine.
Decodes a URI component previously created by encodeURIComponent or by a similar routine.
Encodes a URI by replacing certain characters with escape sequences.
Encodes a URI component by replacing all special characters with their corresponding UTF-8 escape sequences.
Evaluates JavaScript code passed as a string.
Returns true if the given number is a finite number.
void
The NaN property indicates that a value is 'Not a Number'.
Returns true if the given name can be used as a valid name for an XML element or attribute.
Makes a floating point number from the starting numbers in a given string.
Makes a integer from the starting numbers in a given string in the base specified.
Makes a integer from the starting numbers in a given string in the base specified.
Numeric value representing infinity.
Sample
Value representing Not-a-Number.
Sample
The value undefined.
Sample
Decodes a URI previously encoded with encodeURI or another similar routine.
Parameters
Sample
Decodes a URI component previously created by encodeURIComponent or by a similar routine.
Parameters
Sample
Encodes a URI by replacing certain characters with escape sequences.
Parameters
Sample
Encodes a URI component by replacing all special characters with their corresponding UTF-8 escape sequences.
Parameters
Sample
Evaluates JavaScript code passed as a string. Returns the value returned by the evaluated code.
Parameters
Sample
Returns true if the given number is a finite number.
Parameters
Sample
The NaN property indicates that a value is 'Not a Number'.
Parameters
Returns: void
Sample
Returns true if the given name can be used as a valid name for an XML element or attribute. This was implemented by the Rhino engine as part of Ecma-357 which was meanwhile withdrawn.
Parameters
Sample
Makes a floating point number from the starting numbers in a given string.
Parameters
Sample
Makes a integer from the starting numbers in a given string in the base specified.
Parameters
Sample
Makes a integer from the starting numbers in a given string in the base specified.
Parameters
Sample
Type
Type
Type
encodedURI ;
Returns:
encodedURI ;
Returns:
URI ;
Returns:
URI ;
Returns:
expression ;
Returns:
n ;
Returns:
value ;
name ;
Returns:
text ;
Returns:
text ;
Returns:
text ;
radix ;
Returns: