11.12.2012 Views

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Object Description<br />

Array Provides an ordered list data type and related functionality<br />

Boolean Object corresponding to the primitive Boolean data type<br />

Date Facilitates date- and time-related computation<br />

Error Provides the ability to create a variety of exceptions (and includes a<br />

variety of derived objects such as SyntaxError)<br />

Function Provides function-related capabilities such as examination of function<br />

arguments<br />

Global Provides universally available functions for a variety of data<br />

conversion and evaluation tasks<br />

Math Provides more advanced mathematical features than those available<br />

with standard <strong>JavaScript</strong> operators<br />

Number Object corresponding to the primitive number data type<br />

Object Generic object providing basic features (such as type-explicit type<br />

conversion methods) from which all other objects are derived<br />

RegExp Permits advanced string matching and manipulation<br />

String Object corresponding to the primitive string data type<br />

<strong>The</strong> Global object in particular contains a variety of useful utility properties and methods.<br />

Aspiring <strong>JavaScript</strong> programmers should become very familiar with the features of Global<br />

summarized in Table A-17.<br />

Table A-17: Properties of the Global Object<br />

Property Description<br />

decodeURI(encodedURI) URI-decodes the string encodedURI and<br />

returns the result<br />

decodeURIComponent(uriComponent) URI-decodes the encodeURIComponentencoded<br />

string uriComponent and returns<br />

the result<br />

encodeURI(string) URI-encodes the string string and returns<br />

the result<br />

encodeURIComponent(string) URI-encodes the string string and returns<br />

the result<br />

escape(string) URL-encodes string and returns the result<br />

eval(x) Executes the string x as if it were <strong>JavaScript</strong><br />

source code<br />

Infinity <strong>The</strong> special numeric value Infinity<br />

isFinite(x) Returns a Boolean indicating whether x is<br />

finite (or results in a finite value when<br />

converted to a number)<br />

isNaN(x) Returns a Boolean indicating whether x is<br />

NaN (or results in NaN when converted to a<br />

number)<br />

NaN <strong>The</strong> special numeric value NaN

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!