JavaScript Global


JavaScript global properties and methods can be used to create JavaScript objects.


JavaScript Global Properties

Property Description
Infinity Represents the numeric value of positive infinity.
NaN Indicates whether a value is a numeric value.
undefined Indicates an undefined value.

JavaScript Global Functions

Function Description
decodeURI() Decodes an encoded URI.
decodeURIComponent() Decodes an encoded URI component.
encodeURI() Encodes a string into a URI.
encodeURIComponent() Encodes a string into a URI component.
escape() Encodes a string.
eval() Computes a JavaScript string and executes it as script code.
isFinite() Checks whether a value is a finite number.
isNaN() Checks whether a value is a number.
Number() Converts an object's value to a number.
parseFloat() Parses a string and returns a floating-point number.
parseInt() Parses a string and returns an integer.
String() Converts an object's value to a string.
unescape() Decodes a string encoded by escape().
Other Extensions