An object is written with curly brackets. Inside are properties: pairs of a name (the key) and a value, separated by a colon, with commas between the pairs:
const book = {
title: "Code from Zero",
pages: 340,
inStock: true,
tags: ["beginners", "javascript"],
};
console.log(book.title);
console.log(book["pages"]);
console.log(book.tags[0]);
book.pages = 352;
book.price = 25;
console.log(book);
Code from Zero
340
beginners
{
title: 'Code from Zero',
pages: 352,
inStock: true,
tags: [ 'beginners', 'javascript' ],
price: 25
}