Friday, 2 January 2015

Standard built-in objects

JavaScript has several objects included in its core, for example, there are objects like Math, Object, Array, and String.

The example below shows how to use the Math object to get a random number by using its random() method.
console.log(Math.random());
 

Standard objects (by category)

Value properties

Global properties returning a simple value.

Function properties

Global functions returning the result of a specific routine.

Fundamental objects

General language objects, functions and errors.

Numbers and dates

Objects dealing with numbers, dates and mathematical calculations.

Text processing

Objects for manipulating texts.

Indexed collections

Collections ordered by an index. Array-type objects.

Keyed collections

Collections of objects as keys. Elements iterable in insertion order.

Structured data

Data buffers and JavaScript Object Notation.

Control abstraction objects

Reflection

Internationalization

Additions to the ECMAScript core for language-sensitive functionalities.

Non-standard objects

Other

No comments:

Post a Comment