JavaScript Objects

JavaScript is an object-oriented language. An object is a group of named values. You can refer to the name values as object properties.

To create an object, you need to specify the properties in curly brackets. The property is a “property name: value” pair, where the property name is string and the value could be any data type.

Continue from page 72