Learn JavaScript
Object
7.8
Lesson

Add object property using dot notation

We have an object person in the editor.

Let’s try to add the value Engineer to the profession key in the object using dot notation.