• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

1.15. Global Functions

Core JavaScript defines a handful of global functions:


escape (s)

Encode a string for transmission. JavaScript 1.0; ECMA-262; Unicode support in Internet Explorer 4.


eval (code)

Execute JavaScript code from a string.


getClass (javaobj)

Return the JavaClass of a JavaObject. Navigator 3.


isFinite (n)

Determine whether a number is finite. JavaScript 1.2; ECMA-262.


NaN (x)

Check for not-a-number. JavaScript 1.1; ECMA-262.


parseFloat (s)

Convert a string to a number. JavaScript 1.0; enhanced in JavaScript 1.1; ECMA-262.


parseInt (s, radix)

Convert a string to an integer. JavaScript 1.0; enhanced in JavaScript 1.1; ECMA-262.


unescape (s)

Decode an escaped string. JavaScript 1.0; ECMA-262; Unicode support in Internet Explorer 4.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint