Instantiating Objects
In this lesson, we instantiate objects in JavaScript! Let's begin!
We'll cover the following...
In most programming languages, constructors are the only way to instantiate new objects. As you already saw in the introduction of this section, JavaScript allows you to use manual setup and you can create objects using the object literal (JSON). The most concise way is by using the object literal; it is easy to read and helps you use less characters when typing.
However, it has a significant issue. You can only instantiate your objects one by one, and you must repeat the literal every time, often including dozens of lines. ...