JavaScript Global Functions

Built-in global functions available in JavaScript.

Global Functions

eval();                     # executes a string as if it was script code
String(23);                 # return string from number
(23).toString();            # return string from number
Number("23");               # return number from string
decodeURI(enc);             # decode URI
encodeURI(uri);             # encode URI
decodeURIComponent(enc);    # decode a URI component
encodeURIComponent(uri);    # encode a URI component
isFinite();                 # is variable a finite, legal number
isNaN();                    # is variable an illegal number
parseFloat();               # returns floating point number of string
parseInt();                 # parses a string and returns an integer