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:



Table Of Contents