Global

Introduction

Property

The Property method Description. The following is the syntax for the Property method.

Property;

Example

The following is the code for the Property method.

document.write(Property);

On running the above code, the following output is obtained.

Infinity

The Infinity method returns a numeric value that represents positive/negative infinity. The following is the syntax for the Infinity method.

Infinity;

Example

The following is the code for the Infinity method.

document.write(Infinity);

On running the above code, the following output is obtained.

NaN

The NaN method "Not-a-Number" value. The following is the syntax for the NaN method.

NaN;

Example

The following is the code for the NaN method.

document.write(NaN);

On running the above code, the following output is obtained.

undefined

The undefined method Indicates that a variable has not been assigned a value. The following is the syntax for the undefined method.

undefined;

Example

The following is the code for the undefined method.

document.write(undefined);

On running the above code, the following output is obtained.

Function

The Function method Description. The following is the syntax for the Function method.

Function;

Example

The following is the code for the Function method.

document.write(Function);

On running the above code, the following output is obtained.

decodeURI()

The decodeURI() method Decodes a URI. The following is the syntax for the decodeURI() method.

decodeURI();

Example

The following is the code for the decodeURI() method.

document.write(decodeURI(123.456));

On running the above code, the following output is obtained.

decodeURIComponent()

The decodeURIComponent() method Decodes a URI component. The following is the syntax for the decodeURIComponent() method.

decodeURIComponent();

Example

The following is the code for the decodeURIComponent() method.

document.write(decodeURIComponent(123.456));

On running the above code, the following output is obtained.

encodeURI()

The encodeURI() method Encodes a URI. The following is the syntax for the encodeURI() method.

encodeURI();

Example

The following is the code for the encodeURI() method.

document.write(encodeURI(123.456));

On running the above code, the following output is obtained.

encodeURIComponent()

The encodeURIComponent() method Encodes a URI component. The following is the syntax for the encodeURIComponent() method.

encodeURIComponent();

Example

The following is the code for the encodeURIComponent() method.

document.write(encodeURIComponent(123.456));

On running the above code, the following output is obtained.

escape()

The escape() method Encodes a string. The following is the syntax for the escape() method.

escape();

Example

The following is the code for the escape() method.

document.write(escape(123.456));

On running the above code, the following output is obtained.

eval()

The eval() method Evaluates a string and executes it as if it's script code. The following is the syntax for the eval() method.

eval();

Example

The following is the code for the eval() method.

document.write(eval(123.456));

On running the above code, the following output is obtained.

isFinite()

The isFinite() method determines whether a value is a finite, legal number. The following is the syntax for the isFinite() method.

isFinite();

Example

The following is the code for the isFinite() method.

document.write(isFinite(123.456));

On running the above code, the following output is obtained.

isNaN()

The isNaN() method Determines whether a value is an illegal number. The following is the syntax for the isNaN() method.

isNaN();

Example

The following is the code for the isNaN() method.

document.write(isNaN(123.456));

On running the above code, the following output is obtained.

Number()

The Number() method converts an object's value to a number. The following is the syntax for the Number() method.

Number();

Example

The following is the code for the Number() method.

document.write(Number(123.456));

On running the above code, the following output is obtained.

parseFloat()

The parseFloat() method Parses a string and returns a floating point number. The following is the syntax for the parseFloat() method.

parseFloat();

Example

The following is the code for the parseFloat() method.

document.write(parseFloat(123.456));

On running the above code, the following output is obtained.

parseInt()

The parseInt() method Parses a string and returns an integer. The following is the syntax for the parseInt() method.

parseInt();

Example

The following is the code for the parseInt() method.

document.write(parseInt(123.456));

On running the above code, the following output is obtained.

String()

The String() method converts an object's value to a string. The following is the syntax for the String() method.

String();

Example

The following is the code for the String() method.

document.write(String(123.456));

On running the above code, the following output is obtained.

unescape()

The unescape() method decodes an encoded string. The following is the syntax for the unescape() method.

unescape();

Example

The following is the code for the unescape() method.

document.write(unescape(123.456));

On running the above code, the following output is obtained.