tracks

Codecademy

Sign in Sign up
Ajax-loader-large-white
37/71
JavaScript Quick Start Guide
Creating an object

An object in JavaScript is a set of key-value pairs, also known as a map. The keys are strings and the values can be anything (other objects or primitives).

There is a lot of different syntax for using objects in JS, so let's get started by trying out some basic examples.

Instructions
script.js
Back to Editor

Sign in