• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. JavaScript > Global Functions

11.16. 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.


isNaN(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