This chapter documents all of JavaScript's standard, built-in objects, including 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.
The global object itself can be accessed using the 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 propertiesThese global properties return a simple value. They have no properties or methods.
Function propertiesThese global functionsâfunctions which are called globally, rather than on an objectâdirectly return their results to the caller.
eval()
isFinite()
isNaN()
parseFloat()
parseInt()
decodeURI()
decodeURIComponent()
encodeURI()
encodeURIComponent()
escape()
Deprecatedunescape()
DeprecatedThese objects represent fundamental language constructs.
Error objectsError objects are a special type of fundamental object. They include the basic Error
type, as well as several specialized error types.
Error
AggregateError
EvalError
RangeError
ReferenceError
SyntaxError
TypeError
URIError
InternalError
Non-standardThese are the base objects representing numbers, dates, and mathematical calculations.
Text processingThese objects represent strings and support manipulating them.
Indexed collections Keyed collectionsThese objects represent collections which use keys. The iterable collections (Map
and Set
) contain elements which are easily iterated in the order of insertion.
These objects represent and interact with structured data buffers and data coded using JavaScript Object Notation (JSON).
Managing memoryThese objects interact with the garbage collection mechanism.
Control abstraction objectsControl abstractions can help to structure code, especially async code (without using deeply nested callbacks, for example).
Iterator
AsyncIterator
Promise
GeneratorFunction
AsyncGeneratorFunction
Generator
AsyncGenerator
AsyncFunction
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4