JS: Array (class)

By Xah Lee. Date: . Last updated: .

What is the Keyword β€œArray”

Array is the value of the property key "Array" of the Global Object .

console.assert(globalThis["Array"] === Array);

Type

Type of Array is a function.

console.assert(typeof Array === "function");

Parent

Parent of Array is Function.prototype.

console.assert(Reflect.getPrototypeOf(Array) === Function.prototype);

Purpose

Purpose of Array is:

Array Constructor

Properties

JavaScript. Array