Dot Notation

noun

say it: “DOT noh-TAY-shun” /dɒt noʊˈteɪʃən/

Reading or changing a property of a JavaScript object by writing a dot and the property's name after the object, such as pet.name.

What is Dot Notation in JavaScript?

Dot Notation — Accessing an object property with a dot followed by its name.

const order = { item: "tea" };
const item = order.item;

In a sentence

  • “With dot notation, pet.species gave me 'dog'.”

Level: Apprentice · More JavaScript terms at this level

Updated

In other subjects