Objects

Object literals

Objects map to any JavaScript value such as strings, numbers, booleans, arrays and functions. If a property’s value is a function, it is known as a method.

Objects can be created two ways: const myVar = {} (object literal) or const myVar = new Object() (constructor function)

See console for code examples.