Object Oriented JavaScript Tutorial #9 – Constructors (under the hood)




Hey ninjas, in this Object Oriented JavaScript tutorial, I’ll explain how we created objects before the class keyword was introduced – using the original constructor functions.

🐱‍💻 Course Links:

– VS Code editor – https://code.visualstudio.com/
– GitHub repository (course files) – https://github.com/iamshaunjp/object-oriented-js
– JavaScript for Beginners – https://www.youtube.com/watch?v=qoSksQ4s_hg&list=PL4cUxeGkcC9i9Ae2D9Ee1RvylH38dKuET

🤑 Donate @ https://www.paypal.me/thenetninja

🎓Find me on Udemy @ https://www.udemy.com/user/47fd83f6-5e4a-4e87-a0f0-519ac51f91b6/

👾 Video thumbnail artwork by PixelSwish @ https://www.youtube.com/channel/UCGKSD3mitWl5UpMxZzaIrRA

Original source


18 responses to “Object Oriented JavaScript Tutorial #9 – Constructors (under the hood)”

  1. Bit new to OOP but I thought 'new' keyword was linked to 'class' keyword so when we are using a function to emulate a class how come we still use 'new' to call it instead of using a standard function call like:
    var userOne = user('ninja', 'ninja@ninjutsu.com') ;

  2. Another amazing series from you thank you so much. I wanted to ask If all of this oop stuff applies to other programming languages like C? With different syntax ofc, but if classes and all the things also exist and works there? Thanks

Leave a Reply