JavaScript Tutorials - Herong's Tutorial Examples
∟Introduction to Built-in Object Types
∟Overview of Built-in Object Types
This section provides a list of all built-in object types defined in the ECMAScript specification.
The current Mozilla JavaScript specification defines the following built-in object types:
- Global - A special object type used to create one and only one object to hold global built-in properties and functions.
Note that ECMAScript only supports one single object of the Global object type. You are not allowed to the Global()
constructor to create other Global objects.
- Object - The root object type in the object type tree. All other object types are inherited from the Object object type.
- Function - An object type used to create functions. All functions are objects of the Function object type.
- Boolean - An object type used to create Boolean objects. Boolean object type allows you to handle Boolean primitive values
as objects.
- Symbol - An object type used to store all non-String values that may be used as the key of an Object property.
- Error, AggregateError, EvalError, InternalError, RangeError, ReferenceError, SyntaxError, TypeError, URIError -
An object type used to create error objects used in exception handling processes.
- Number - An object type used to create number objects. Boolean object type allows you to handle number primitive values
as objects.
- BigInt - An object type used to create integers that are bigger than 253 - 1.
- Math - A special object type used to create one and only one object to hold mathematics related properties and functions.
- Date - An object type used to create date and time objects.
- String - An object type used to create string objects. String object type allows you to handle string primitive values
as objects.
- RegExp - An object type used to create regular expression objects for text processing.
- Array, Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array,
Float64Array, BigInt64Array, BigUint64Array
- An object type used to create arrays. All arrays are objects of the Array object type.
- Map - An object type used to hold key-value pairs and remembers the original insertion order of the keys.
Any value (both objects and primitive values) may be used as either a key or a value.
- Set - An object type used to store unique values of any type, whether primitive
values or object references.
- ArrayBuffer, SharedArrayBuffer, Atomics, DataView -
An object type used to represent a generic, fixed-length raw binary data buffer.
- JSON - An object type used to hold methods for parsing
JavaScript Object Notation (JSON) and converting values to JSON.
- Promise -
An object type used to represent the eventual completion (or failure) of
an asynchronous operation, and its resulting value.
- Generator, GeneratorFunction -
An object type used for objects returned by generator functions.
- AsyncFunction -
An object type to create a new async function object. In JavaScript,
every asynchronous function is actually an AsyncFunction object.
- Reflect - An object type
that provides methods for interceptable JavaScript operations. The methods are
the same as those of proxy handlers. Reflect is not a function object, so it's not constructible.
- Proxy - An object type used to define custom behavior for fundamental
operations (e.g., property lookup, assignment, enumeration, function invocation, etc.)
See next sections for quick introductions of some built-in object types defined above.
Table of Contents
About This Book
Introduction to JavaScript
ECMAScript Language Specification and JavaScript Dialects
Data Types, Variables and Expressions
Flow Control Statements
Creating, Accessing, and Manipulating Arrays
Defining and Calling Functions
Web Browser Supporting JavaScript
Server-Side and Client-Side Web Scripting
Introduction to Objects
Defining Your Own Object Types
Inheritance of Properties and Methods through the Prototype Object Chain
'jrunscript' - JavaScript Shell Command from JDK
Using Functions as "Function" Objects
►Introduction to Built-in Object Types
►Overview of Built-in Object Types
The "Object" Object Type - The Root Object Type
The "Global" Object Type - The Invisible Global Container
Global Properties and Functions Defined in ECMAScript
Global Properties and Functions Provided by "jrunscript"
The "Function" Object Type - Functions Are Objects
The "Array" Object Type - Arrays Are Objects
The "JSON" Object Type - parse() and stringify()
The "String" Object Type - Not Equal to String Primitive Type
The "Boolean" Object Type - Wrapping Boolean Values into Objects
The "Number" Object Type - Not Equal to Number Primitive Type
The "Date" Object Type - Managing Dates and Times
The "RegExp" Object Type - Regular Expression Patterns
The "Error" Object Type - Runtime Exceptions
The "Math" Object Type - The Math Container
W3C's Document Object Model (DOM) Specifications
AJAX (Asynchronous JavaScript And XML)
References
Full Version in PDF/EPUB