Constructors help you build objects. A constructor is a special function. It runs when you use the new keyword. When you call a constructor, three things happen: - JavaScript creates a new empty ...
JavaScript solves this with Constructor Functions. Think of a constructor as a blueprint. A blueprint for a house is not a house, but you use it to build many houses. How it works: A constructor is a ...