Constructor functions

suggest change

Remarks

Constructor functions are actually just regular functions, there’s nothing special about them. It’s only the new keyword which causes the special behavior shown in the examples above. Constructor functions can still be called like a regular function if desired, in which case you would need to bind the this value explicitly.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Constructor functions:

Table Of Contents
11 Arrays
12 Objects
14 Classes
16 Map
17 Set
24 Loops
27 Date
29 Scope
30 AJAX
35 Cookies
41 JSON
44 Fetch
45 Modules
46 Screen
56 Constructor functions
64 Console
68 Symbols
73 Modals
76 Events
86 Proxy
89 WeakMap
90 WeakSet
102 Tilde