JS: Date (class)

By Xah Lee. Date: . Last updated: .

What is the Keyword β€œDate”

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

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

Type

Type of Date is a function.

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

Parent

Parent of Date is Function.prototype.

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

Purpose

Purpose of Date is:

Date Constructor

Properties

JavaScript. Date