Learn JavaScript
Advanced JavaScript
25.7
Lesson

Object creation - new

An object can be created using the new keyword.

In the above code, new Object() creates and returns a single empty object, which is stored in myCar.

We can assign properties to an object created this way, using the dot operator.