Standard built-in objects

  • Revision slug: JavaScript/Reference/Global_Objects
  • Revision title: Global Objects
  • Revision id: 298317
  • Created:
  • Creator: evilpie
  • Is current revision? No
  • Comment

Revision Content

Summary

This chapter documents all the JavaScript objects, along with their methods and properties.

The term "global objects" here is not to be confused with the global object. Here, global objects refer to objects in the global scope. The global object itself can be accessed by this in the global scope. In fact, the global scope consists of the properties of the global object (including inherited properties, if any).

Standard global objects (by category)

General-purpose constructors

Typed array constructors

Error constructors

Non-constructor functions

Other

Standard global objects (alphabetically)

Other objects in the global scope are either created by the user script or provided by the host application. The host objects available in Gecko-based browsers are documented in the Gecko DOM Reference.

For more information about the distinction between the DOM and core JavaScript, see The DOM and JavaScript article.

Revision Source

<!-- The main JSRef index uses inclusion to synchronize content from this page. There are tags below to ensure this works well. Please do not make changes to this page without checking the effects on other pages. -->
<h2 id="Summary">Summary</h2>
<p>This chapter documents all the JavaScript objects, along with their methods and properties.</p>
<div class="onlyinclude">
  <p>The term "global 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>. The global object itself can be accessed by <a href="/en-US/docs/JavaScript/Reference/Operators/this" title="en-US/docs/JavaScript/Reference/Operators/Special_Operators/this_Operator"><code>this</code></a> 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>
  <h2 id="Standard_global_objects_(by_category)">Standard global objects (by category)</h2>
  <h3 id="General-purpose_constructors">General-purpose constructors</h3>
  <ul>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Array" title="en-US/docs/JavaScript/Reference/Global_Objects/Array">Array</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Boolean" title="en-US/docs/JavaScript/Reference/Global_Objects/Boolean">Boolean</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Date" title="en-US/docs/JavaScript/Reference/Global_Objects/Date">Date</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Function" title="en-US/docs/JavaScript/Reference/Global_Objects/Function">Function</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Iterator" title="en-US/docs/JavaScript/Reference/Global_Objects/Iterator">Iterator</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Number" title="en-US/docs/JavaScript/Reference/Global_Objects/Number">Number</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Object" title="en-US/docs/JavaScript/Reference/Global_Objects/Object">Object</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/RegExp" title="en-US/docs/JavaScript/Reference/Global_Objects/RegExp">RegExp</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/String" title="en-US/docs/JavaScript/Reference/Global_Objects/String">String</a></li>
  </ul>
  <h3 id="Typed_array_constructors">Typed array constructors</h3>
  <ul>
    <li><a href="/en-US/docs/JavaScript_typed_arrays/ArrayBuffer" title="en-US/docs/JavaScript_typed_arrays/ArrayBuffer">ArrayBuffer</a></li>
    <li><a href="/en-US/docs/JavaScript_typed_arrays/DataView" title="/en-US/docs/JavaScript_typed_arrays/DataView">DataView</a></li>
    <li><a href="/en-US/docs/JavaScript_typed_arrays/Float32Array" title="en-US/docs/JavaScript_typed_arrays/Float32Array">Float32Array</a></li>
    <li><a href="/en-US/docs/JavaScript_typed_arrays/Float64Array" title="en-US/docs/JavaScript_typed_arrays/Float64Array">Float64Array</a></li>
    <li><a href="/en-US/docs/JavaScript_typed_arrays/Int16Array" title="en-US/docs/JavaScript_typed_arrays/Int16Array">Int16Array</a></li>
    <li><a href="/en-US/docs/JavaScript_typed_arrays/Int32Array" title="en-US/docs/JavaScript_typed_arrays/Int32Array">Int32Array</a></li>
    <li><a href="/en-US/docs/JavaScript_typed_arrays/Int8Array" title="en-US/docs/JavaScript_typed_arrays/Int8Array">Int8Array</a></li>
    <li><a href="/en-US/docs/JavaScript_typed_arrays/Uint16Array" title="en-US/docs/JavaScript_typed_arrays/int16Array">Uint16Array</a></li>
    <li><a href="/en-US/docs/JavaScript_typed_arrays/Uint32Array" title="en-US/docs/JavaScript_typed_arrays/Uint32Array">Uint32Array</a></li>
    <li><a href="/en-US/docs/JavaScript_typed_arrays/Uint8Array" title="en-US/docs/JavaScript_typed_arrays/int8Array">Uint8Array</a></li>
    <li><a href="/en-US/docs/JavaScript_typed_arrays/Uint8ClampedArray" title="en-US/docs/JavaScript_typed_arrays/Uint8ClampedArray">Uint8ClampedArray</a></li>
  </ul>
  <h3 id="Error_constructors">Error constructors</h3>
  <ul>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Error" title="en-US/docs/JavaScript/Reference/Global_Objects/Error">Error</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/EvalError" title="en-US/docs/JavaScript/Reference/Global_Objects/EvalError">EvalError</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/InternalError" title="en-US/docs/JavaScript/Reference/Global_Objects/InternalError">InternalError</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/RangeError" title="en-US/docs/JavaScript/Reference/Global_Objects/RangeError">RangeError</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/ReferenceError" title="en-US/docs/JavaScript/Reference/Global_Objects/ReferenceError">ReferenceError</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/StopIteration" title="en-US/docs/JavaScript/Reference/Global_Objects/StopIteration">StopIteration</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/SyntaxError" title="en-US/docs/JavaScript/Reference/Global_Objects/SyntaxError">SyntaxError</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/TypeError" title="en-US/docs/JavaScript/Reference/Global_Objects/TypeError">TypeError</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/URIError" title="en-US/docs/JavaScript/Reference/Global_Objects/URIError">URIError</a></li>
  </ul>
  <h3 id="Non-constructor_functions">Non-constructor functions</h3>
  <ul>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/decodeURI" title="en-US/docs/JavaScript/Reference/Global_Objects/decodeURI">decodeURI</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/decodeURIComponent" title="en-US/docs/JavaScript/Reference/Global_Objects/decodeURIComponent">decodeURIComponent</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/encodeURI" title="en-US/docs/JavaScript/Reference/Global_Objects/encodeURI">encodeURI</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/encodeURIComponent" title="en-US/docs/JavaScript/Reference/Global_Objects/encodeURIComponent">encodeURIComponent</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/eval" title="en-US/docs/JavaScript/Reference/Global_Objects/eval">eval</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/isFinite" title="en-US/docs/JavaScript/Reference/Global_Objects/isFinite">isFinite</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/isNaN" title="en-US/docs/JavaScript/Reference/Global_Objects/isNaN">isNaN</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/parseFloat" title="en-US/docs/JavaScript/Reference/Global_Objects/parseFloat">parseFloat</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/parseInt" title="en-US/docs/JavaScript/Reference/Global_Objects/parseInt">parseInt</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/uneval" title="en-US/docs/JavaScript/Reference/Global_Objects/uneval">uneval</a></li>
  </ul>
  <h3 id="Other">Other</h3>
  <ul>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Infinity" title="en-US/docs/JavaScript/Reference/Global_Properties/Infinity">Infinity</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/JSON" title="en-US/docs/JavaScript/Reference/Global_Objects/JSON">JSON</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Math" title="en-US/docs/JavaScript/Reference/Global_Objects/Math">Math</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/NaN" title="en-US/docs/JavaScript/Reference/Global_Properties/NaN">NaN</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/undefined" title="en-US/docs/JavaScript/Reference/Global_Properties/undefined">undefined</a></li>
  </ul>
  <h2 id="Standard_global_objects_(alphabetically)">Standard global objects (alphabetically)</h2>
  <ul>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Array" title="en-US/docs/JavaScript/Reference/Global_Objects/Array">Array</a></li>
    <li><a href="/en-US/docs/JavaScript_typed_arrays/ArrayBuffer" title="en-US/docs/JavaScript_typed_arrays/ArrayBuffer">ArrayBuffer</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Boolean" title="en-US/docs/JavaScript/Reference/Global_Objects/Boolean">Boolean</a></li>
    <li><a href="/en-US/docs/JavaScript_typed_arrays/DataView" title="/en-US/docs/JavaScript_typed_arrays/DataView">DataView</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Date" title="en-US/docs/JavaScript/Reference/Global_Objects/Date">Date</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/decodeURI" title="en-US/docs/JavaScript/Reference/Global_Objects/decodeURI">decodeURI</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/decodeURIComponent" title="en-US/docs/JavaScript/Reference/Global_Objects/decodeURIComponent">decodeURIComponent</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/encodeURI" title="en-US/docs/JavaScript/Reference/Global_Objects/encodeURI">encodeURI</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/encodeURIComponent" title="en-US/docs/JavaScript/Reference/Global_Objects/encodeURIComponent">encodeURIComponent</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Error" title="en-US/docs/JavaScript/Reference/Global_Objects/Error">Error</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/eval" title="en-US/docs/JavaScript/Reference/Global_Objects/eval">eval</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/EvalError" title="en-US/docs/JavaScript/Reference/Global_Objects/EvalError">EvalError</a></li>
    <li><a href="/en-US/docs/JavaScript_typed_arrays/Float32Array" title="en-US/docs/JavaScript_typed_arrays/Float32Array">Float32Array</a></li>
    <li><a href="/en-US/docs/JavaScript_typed_arrays/Float64Array" title="en-US/docs/JavaScript_typed_arrays/Float64Array">Float64Array</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Function" title="en-US/docs/JavaScript/Reference/Global_Objects/Function">Function</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Infinity" title="en-US/docs/JavaScript/Reference/Global_Properties/Infinity">Infinity</a></li>
    <li><a href="/en-US/docs/JavaScript_typed_arrays/Int16Array" title="en-US/docs/JavaScript_typed_arrays/Int16Array">Int16Array</a></li>
    <li><a href="/en-US/docs/JavaScript_typed_arrays/Int32Array" title="en-US/docs/JavaScript_typed_arrays/Int32Array">Int32Array</a></li>
    <li><a href="/en-US/docs/JavaScript_typed_arrays/Int8Array" title="en-US/docs/JavaScript_typed_arrays/Int8Array">Int8Array</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/isFinite" title="en-US/docs/JavaScript/Reference/Global_Objects/isFinite">isFinite</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/isNaN" title="en-US/docs/JavaScript/Reference/Global_Objects/isNaN">isNaN</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Iterator" title="en-US/docs/JavaScript/Reference/Global_Objects/Iterator">Iterator</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/JSON" title="en-US/docs/JavaScript/Reference/Global_Objects/JSON">JSON</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Math" title="en-US/docs/JavaScript/Reference/Global_Objects/Math">Math</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/NaN" title="en-US/docs/JavaScript/Reference/Global_Properties/NaN">NaN</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Number" title="en-US/docs/JavaScript/Reference/Global_Objects/Number">Number</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Object" title="en-US/docs/JavaScript/Reference/Global_Objects/Object">Object</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/parseFloat" title="en-US/docs/JavaScript/Reference/Global_Objects/parseFloat">parseFloat</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/parseInt" title="en-US/docs/JavaScript/Reference/Global_Objects/parseInt">parseInt</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/RangeError" title="en-US/docs/JavaScript/Reference/Global_Objects/RangeError">RangeError</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/ReferenceError" title="en-US/docs/JavaScript/Reference/Global_Objects/ReferenceError">ReferenceError</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/RegExp" title="en-US/docs/JavaScript/Reference/Global_Objects/RegExp">RegExp</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/StopIteration" title="en-US/docs/JavaScript/Reference/Global_Objects/StopIteration">StopIteration</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/String" title="en-US/docs/JavaScript/Reference/Global_Objects/String">String</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/SyntaxError" title="en-US/docs/JavaScript/Reference/Global_Objects/SyntaxError">SyntaxError</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/TypeError" title="en-US/docs/JavaScript/Reference/Global_Objects/TypeError">TypeError</a></li>
    <li><a href="/en-US/docs/JavaScript_typed_arrays/Uint16Array" title="en-US/docs/JavaScript_typed_arrays/Uint16Array">Uint16Array</a></li>
    <li><a href="/en-US/docs/JavaScript_typed_arrays/Uint32Array" title="en-US/docs/JavaScript_typed_arrays/Uint32Array">Uint32Array</a></li>
    <li><a href="/en-US/docs/JavaScript_typed_arrays/Uint8Array" title="en-US/docs/JavaScript_typed_arrays/Uint8Array">Uint8Array</a></li>
    <li><a href="/en-US/docs/JavaScript_typed_arrays/Uint8ClampedArray" title="en-US/docs/JavaScript_typed_arrays/Uint8ClampedArray">Uint8ClampedArray</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/undefined" title="en-US/docs/JavaScript/Reference/Global_Properties/undefined">undefined</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/uneval" title="en-US/docs/JavaScript/Reference/Global_Objects/uneval">uneval</a></li>
    <li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/URIError" title="en-US/docs/JavaScript/Reference/Global_Objects/URIError">URIError</a></li>
  </ul>
  <p>Other objects in the global scope are either <a href="/en-US/docs/JavaScript/Guide/Working_with_Objects#Creating_New_Objects" title="en-US/docs/Core_JavaScript_1.5_Guide/Working_with_Objects#Creating_New_Objects">created by the user script</a> or provided by the host application. The host objects available in <a href="/en-US/docs/Gecko" title="en-US/docs/Gecko">Gecko</a>-based browsers are documented in the <a href="/en-US/docs/Gecko_DOM_Reference" title="en-US/docs/Gecko_DOM_Reference">Gecko DOM Reference</a>.</p>
  <p>For more information about the distinction between the <a href="/en-US/docs/DOM" title="en-US/docs/DOM">DOM</a> and core <a href="/en-US/docs/JavaScript" title="en-US/docs/JavaScript">JavaScript</a>, see <a href="/en-US/docs/JavaScript_technologies_overview" title="en-US/docs/The_DOM_and_JavaScript">The DOM and JavaScript</a> article.</p>
</div>
<!-- languages({
"es": "es/docs/Referencia_de_JavaScript_1.5/Objetos_globales",
"zh-CN": "zh-CN/docs/JavaScript/Reference/Global_Objects",
"fr": "fr/docs/R\u00e9f\u00e9rence_de_JavaScript_1.5_Core/Objets_globaux",
"ja": "ja/docs/JavaScript/Reference/Global_Objects",
"pl": "pl/docs/Dokumentacja_j\u0119zyka_JavaScript_1.5/Obiekty",
"ru": "ru/docs/Справочник_по_JavaScript 1.5/Глобальные_объекты" }) -->
Revert to this revision