Top Categories
JavaScript Tutorial For Beginners #30 - Constructor Functions
- Category:
- Sub Category:
Hey ninjas, I think it's about time we started using constructor functions to create our objects! So in this JavaScript tutorial for beginners I'll introduce it to you! The constructor function is useful if you are creating many objects of the same 'type' - e.g. many different Car
Hey ninjas, I think it's about time we started using constructor functions to create our objects! So in this JavaScript tutorial for beginners I'll introduce it to you! The constructor function is useful if you are creating many objects of the same 'type' - e.g. many different Car objects. It promotes DRY code (don't repeat yourself) and saves a lot of time when creating many objects! Any questions, fire away :)