Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 739043 of Standard built-in objects

  • Revision slug: Web/JavaScript/Reference/Global_Objects
  • Revision title: Standard built-in objects
  • Revision id: 739043
  • Created:
  • Creator: fscholz
  • Is current revision? No
  • Comment Generator object; removed some unneeded parentheses

Revision Content

{{jsSidebar("Objects")}}

Summary

This chapter documents all the JavaScript standard built-in objects, along with their methods and properties.

The term "global objects" (or standard built-in objects) here is not to be confused with the global object. Here, global objects refer to objects in the global scope (but only if ECMAScript 5 strict mode is not used! Otherwise it returns undefined). The global object itself can be accessed by the {{jsxref("Operators/this", "this")}} operator in the global scope. In fact, the global scope consists of the properties of the global object (including inherited properties, if any).

Other objects in the global scope are either created by the user script or provided by the host application. The host objects available in browser contexts are documented in the API reference. For more information about the distinction between the DOM and core JavaScript, see JavaScript technologies overview.

Standard objects (by category)

Value properties

Global properties returning a simple value.

  • {{jsxref("Infinity")}}
  • {{jsxref("NaN")}}
  • {{jsxref("undefined")}}
  • {{jsxref("null")}} literal

Function properties

Global functions returning the result of a specific routine.

  • {{jsxref("Global_Objects/eval", "eval()")}}
  • {{jsxref("Global_Objects/uneval", "uneval()")}} {{non-standard_inline}}
  • {{jsxref("Global_Objects/isFinite", "isFinite()")}}
  • {{jsxref("Global_Objects/isNaN", "isNaN()")}}
  • {{jsxref("Global_Objects/parseFloat", "parseFloat()")}}
  • {{jsxref("Global_Objects/parseInt", "parseInt()")}}
  • {{jsxref("Global_Objects/decodeURI", "decodeURI()")}}
  • {{jsxref("Global_Objects/decodeURIComponent", "decodeURIComponent()")}}
  • {{jsxref("Global_Objects/encodeURI", "encodeURI()")}}
  • {{jsxref("Global_Objects/encodeURIComponent", "encodeURIComponent()")}}
  • {{jsxref("Global_Objects/escape", "escape()")}} {{deprecated_inline}}
  • {{jsxref("Global_Objects/unescape", "unescape()")}} {{deprecated_inline}}

Fundamental objects

General language objects, functions and errors.

  • {{jsxref("Object")}}
  • {{jsxref("Function")}}
  • {{jsxref("Boolean")}}
  • {{jsxref("Symbol")}} {{experimental_inline}}
  • {{jsxref("Error")}}
  • {{jsxref("EvalError")}}
  • {{jsxref("InternalError")}}
  • {{jsxref("RangeError")}}
  • {{jsxref("ReferenceError")}}
  • {{jsxref("SyntaxError")}}
  • {{jsxref("TypeError")}}
  • {{jsxref("URIError")}}

Numbers and dates

Objects dealing with numbers, dates and mathematical calculations.

  • {{jsxref("Number")}}
  • {{jsxref("Math")}}
  • {{jsxref("Date")}}

Text processing

Objects for manipulating texts.

  • {{jsxref("String")}}
  • {{jsxref("RegExp")}}

Indexed collections

Collections ordered by an index. Array-type objects.

  • {{jsxref("Array")}}
  • {{jsxref("Int8Array")}}
  • {{jsxref("Uint8Array")}}
  • {{jsxref("Uint8ClampedArray")}}
  • {{jsxref("Int16Array")}}
  • {{jsxref("Uint16Array")}}
  • {{jsxref("Int32Array")}}
  • {{jsxref("Uint32Array")}}
  • {{jsxref("Float32Array")}}
  • {{jsxref("Float64Array")}}

Keyed collections

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

  • {{jsxref("Map")}} {{experimental_inline}}
  • {{jsxref("Set")}} {{experimental_inline}}
  • {{jsxref("WeakMap")}} {{experimental_inline}}
  • {{jsxref("WeakSet")}} {{experimental_inline}}

Structured data

Data buffers and JavaScript Object Notation.

  • {{jsxref("ArrayBuffer")}}
  • {{jsxref("DataView")}}
  • {{jsxref("JSON")}}

Control abstraction objects

  • {{jsxref("Promise")}} {{experimental_inline}}
  • {{jsxref("Generator")}} {{experimental_inline}}
  • {{jsxref("GeneratorFunction")}} {{experimental_inline}}

Reflection

  • {{jsxref("Reflect")}} {{experimental_inline}}
  • {{jsxref("Proxy")}} {{experimental_inline}}

Internationalization

Additions to the ECMAScript core for language-sensitive functionalities.

  • {{jsxref("Intl")}}
  • {{jsxref("Global_Objects/Collator", "Intl.Collator")}}
  • {{jsxref("Global_Objects/DateTimeFormat", "Intl.DateTimeFormat")}}
  • {{jsxref("Global_Objects/NumberFormat", "Intl.NumberFormat")}}

Non-standard objects

  • {{jsxref("Iterator")}} {{non-standard_inline}}
  • {{jsxref("ParallelArray")}} {{non-standard_inline}}
  • {{jsxref("StopIteration")}} {{non-standard_inline}}

Other

 

Revision Source

<div>
<div>{{jsSidebar("Objects")}}</div>
</div>

<h2 id="Summary" name="Summary">Summary</h2>

<p>This chapter documents all the JavaScript standard built-in objects, along with their methods and properties.</p>

<div class="onlyinclude">
<p>The term "global objects" (or standard built-in objects) here is not to be confused with the <em>global object</em>. Here, global objects refer to <em>objects in the global scope</em> (but only if ECMAScript 5 strict mode is not used! Otherwise it returns <code>undefined</code>). The <em>global object</em> itself can be accessed by the {{jsxref("Operators/this", "this")}} operator in the global scope. In fact, the global scope <em>consists</em><em> of</em> the properties of the global object (including inherited properties, if any).</p>

<p>Other objects in the global scope are either <a href="/en-US/docs/Web/JavaScript/Guide/Working_with_Objects#Creating_new_objects">created by the user script</a> or provided by the host application. The host objects available in browser contexts are documented in the <a href="/en-US/docs/Web/API/Reference">API reference</a>. For more information about the distinction between the <a href="/en-US/docs/DOM/DOM_Reference">DOM</a> and core <a href="/en-US/docs/Web/JavaScript">JavaScript</a>, see <a href="/en-US/docs/Web/JavaScript/JavaScript_technologies_overview">JavaScript technologies overview</a>.</p>

<h2 id="Standard_objects_(by_category)">Standard objects (by category)</h2>

<h3 id="Value_properties">Value properties</h3>

<p>Global properties returning a simple value.</p>

<ul>
 <li>{{jsxref("Infinity")}}</li>
 <li>{{jsxref("NaN")}}</li>
 <li>{{jsxref("undefined")}}</li>
 <li>{{jsxref("null")}} literal</li>
</ul>

<h3 id="Function_properties">Function properties</h3>

<p>Global functions returning the result of a specific routine.</p>

<ul>
 <li>{{jsxref("Global_Objects/eval", "eval()")}}</li>
 <li>{{jsxref("Global_Objects/uneval", "uneval()")}} {{non-standard_inline}}</li>
 <li>{{jsxref("Global_Objects/isFinite", "isFinite()")}}</li>
 <li>{{jsxref("Global_Objects/isNaN", "isNaN()")}}</li>
 <li>{{jsxref("Global_Objects/parseFloat", "parseFloat()")}}</li>
 <li>{{jsxref("Global_Objects/parseInt", "parseInt()")}}</li>
 <li>{{jsxref("Global_Objects/decodeURI", "decodeURI()")}}</li>
 <li>{{jsxref("Global_Objects/decodeURIComponent", "decodeURIComponent()")}}</li>
 <li>{{jsxref("Global_Objects/encodeURI", "encodeURI()")}}</li>
 <li>{{jsxref("Global_Objects/encodeURIComponent", "encodeURIComponent()")}}</li>
 <li>{{jsxref("Global_Objects/escape", "escape()")}} {{deprecated_inline}}</li>
 <li>{{jsxref("Global_Objects/unescape", "unescape()")}} {{deprecated_inline}}</li>
</ul>

<h3 id="Fundamental_objects">Fundamental objects</h3>

<p>General language objects, functions and errors.</p>

<ul>
 <li>{{jsxref("Object")}}</li>
 <li>{{jsxref("Function")}}</li>
 <li>{{jsxref("Boolean")}}</li>
 <li>{{jsxref("Symbol")}} {{experimental_inline}}</li>
 <li>{{jsxref("Error")}}</li>
 <li>{{jsxref("EvalError")}}</li>
 <li>{{jsxref("InternalError")}}</li>
 <li>{{jsxref("RangeError")}}</li>
 <li>{{jsxref("ReferenceError")}}</li>
 <li>{{jsxref("SyntaxError")}}</li>
 <li>{{jsxref("TypeError")}}</li>
 <li>{{jsxref("URIError")}}</li>
</ul>

<h3 id="Numbers_and_dates">Numbers and dates</h3>

<p>Objects dealing with numbers, dates and mathematical calculations.</p>

<ul>
 <li>{{jsxref("Number")}}</li>
 <li>{{jsxref("Math")}}</li>
 <li>{{jsxref("Date")}}</li>
</ul>

<h3 id="Text_processing">Text processing</h3>

<p>Objects for manipulating texts.</p>

<ul>
 <li>{{jsxref("String")}}</li>
 <li>{{jsxref("RegExp")}}</li>
</ul>

<h3 id="Indexed_collections">Indexed collections</h3>

<p>Collections ordered by an index. Array-type objects.</p>

<ul>
 <li>{{jsxref("Array")}}</li>
 <li>{{jsxref("Int8Array")}}</li>
 <li>{{jsxref("Uint8Array")}}</li>
 <li>{{jsxref("Uint8ClampedArray")}}</li>
 <li>{{jsxref("Int16Array")}}</li>
 <li>{{jsxref("Uint16Array")}}</li>
 <li>{{jsxref("Int32Array")}}</li>
 <li>{{jsxref("Uint32Array")}}</li>
 <li>{{jsxref("Float32Array")}}</li>
 <li>{{jsxref("Float64Array")}}</li>
</ul>

<h3 id="Keyed_collections">Keyed collections</h3>

<p>Collections of objects as keys. Elements iterable in insertion order.</p>

<ul>
 <li>{{jsxref("Map")}} {{experimental_inline}}</li>
 <li>{{jsxref("Set")}} {{experimental_inline}}</li>
 <li>{{jsxref("WeakMap")}} {{experimental_inline}}</li>
 <li>{{jsxref("WeakSet")}} {{experimental_inline}}</li>
</ul>

<h3 id="Structured_data">Structured data</h3>

<p>Data buffers and <strong>J</strong>ava<strong>S</strong>cript <strong>O</strong>bject <strong>N</strong>otation.</p>

<ul>
 <li>{{jsxref("ArrayBuffer")}}</li>
 <li>{{jsxref("DataView")}}</li>
 <li>{{jsxref("JSON")}}</li>
</ul>

<h3 id="Control_abstraction_objects">Control abstraction objects</h3>

<ul>
 <li>{{jsxref("Promise")}} {{experimental_inline}}</li>
 <li>{{jsxref("Generator")}} {{experimental_inline}}</li>
 <li>{{jsxref("GeneratorFunction")}} {{experimental_inline}}</li>
</ul>

<h3 id="Reflection">Reflection</h3>

<ul>
 <li>{{jsxref("Reflect")}} {{experimental_inline}}</li>
 <li>{{jsxref("Proxy")}} {{experimental_inline}}</li>
</ul>

<h3 id="Internationalization">Internationalization</h3>

<p>Additions to the ECMAScript core for language-sensitive functionalities.</p>

<ul>
 <li>{{jsxref("Intl")}}</li>
 <li>{{jsxref("Global_Objects/Collator", "Intl.Collator")}}</li>
 <li>{{jsxref("Global_Objects/DateTimeFormat", "Intl.DateTimeFormat")}}</li>
 <li>{{jsxref("Global_Objects/NumberFormat", "Intl.NumberFormat")}}</li>
</ul>

<h3 id="Non-standard_objects">Non-standard objects</h3>

<ul>
 <li>{{jsxref("Iterator")}} {{non-standard_inline}}</li>
 <li>{{jsxref("ParallelArray")}} {{non-standard_inline}}</li>
 <li>{{jsxref("StopIteration")}} {{non-standard_inline}}</li>
</ul>

<h3 id="Other">Other</h3>

<ul>
 <li><code><a href="/en-US/docs/Web/JavaScript/Reference/Functions/arguments">arguments</a></code></li>
</ul>
</div>

<p>&nbsp;</p>
Revert to this revision