Object Literal

Brace syntax that creates an object from a list of properties.

What is Object Literal in JavaScript?

Object Literal — Brace syntax that creates an object from a list of properties.

const order = {
    item: "tea",
    quantity: 2
};

Level: Apprentice · More JavaScript terms at this level

Updated