Object

Names and abbreviations on this page

MDN — MDN Web Docs (formerly Mozilla Developer Network). Reference material for web programming.

Programming terms & practical skills

What it means

In JavaScript, an object groups named properties and their values. For example, one rental listing can have a name, monthly rent and utility estimate. Other languages use the word object within their own type and class systems.

Related skills

Model informationChoose properties that match the real task.

Access consistentlyRead and update the intended property.

Validate structureCheck required properties before relying on them.

An everyday example

A rental object can associate the label Oak Street with rent of 1200 and utilities of 150. Keeping those properties together reduces the chance of mixing one home's label with another home's costs.

What to check

Two objects can represent similar information without being the same object. Avoid accidental changes to shared data.

Related learning

Array

Variable

Function

Learning & Skills

External Resources

MDN — Working with objects