JS: Function (class)

By Xah Lee. Date: . Last updated: .

What is the Keyword โ€œFunctionโ€

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

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

Type

Type of Function is a function.

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

Parent

Parent of Function is Function.prototype.

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

Purpose

Purpose of Function is:

Function Constructor

Properties

JavaScript. Function