Constructor Function
↔ function to programmatically create Object (& link via __proto__
after Instantiation with new
)
aka Constructor, Constructor-fn, Global-Constructor
!cannot use arrow function since it does not have it's own this
keyword
All object literals are Syntactic Sugar for Constructor Functions
{...} === new
Object(...)`
called with new
JS Operator
References
Static Method
↔ Method attach to Constructor Function (NOT Delegate via__proto__
)instanceof
↔ JS Operator to returnboolean
if__proto__
(of Constructor Function) exists on calling Operand's prototype chainnew
↔ JS Operatorto call Constructor Function, assignthis
keyword & link to Prototypenaming convention for [**_
Constructor Function_**](constructor-function)
↔ start with Capital letter@constructor
↔ JSDoc tag to mark function as Constructor Function__proto__
↔[[ ]]
property on all objects, link to Constructor FunctionRegExp()
↔ Constructor Function for newRegExp
ObjectError
↔ Constructor for generic Error ObjectInstance
↔ Object created through aclass
or Constructor FunctionPrivate Constructor
↔ Constructor Function prepend withprivate
to restrict access to within class, prevent Instantiation withnew
Error
↔ Constructor for generic ErrorURL()
↔ Constructor to returnnew
URL
WebSocket
↔ Interface Object & Constructor to access WebSockets APISet()
↔ Constructor to convert iterable arg toset
Date
↔ Interface Constructor for new date object (with epoch)Map()
↔ Constructor to Instantiatenew
map
Objectclass
↔ JS Keyword to declare Class (as Syntactic Sugar over Constructor Function)