Learn JavaScript
Object
7.12
Lesson

Update object property using dot notation

Let’s assume we have an object person as shown in the editor.

Let’s update the age property to 23 using dot notation.