JS: Function (class)
What is the Keyword โFunctionโ
Function
is the value of the property key "Function"
of the Global Object
.
console.log(globalThis["Function"] === Function);
Type
Type of Function
is a function.
typeof Function === "function"
Parent
Parent of Function
is Function.prototype.
Reflect.getPrototypeOf ( Function ) === Function.prototype
Purpose
Purpose of Function
is:
- To create a function from strings. (Useful when you need to generate function definition at run time).
- Holds the property key
"prototype"
. Its value is the parent of all instance of function.
Function Constructor
Properties
JavaScript. Function
- JS: Define Function
- JS: Arrow Function
- JS: Function Parameters
- JS: arguments (object)
- JS: Function Rest Parameters
- JS: Function Parameter Default Value
- JS: Function Argument Destructure
- JS: Function. Declaration vs Expression
- JS: Closure
- JS: Function Call, Apply, Bind
- JS: Functional Programing
- JS: Function Pipe ๐
- JS: Function (class)
- JS: Function Constructor
- JS: Function.prototype