Codington
0 of 8 problems solved • 0%
Use in a course

Exercise prompt

Update an Object Property

Assigning a new value with dot notation updates that property while leaving the object's other properties unchanged.

Example

const player = { name: "Mira", score: 4 }; player.score = 7;

Your task

Predict inventory.stock after adding 3. Replace the empty prediction, perform the update with dot notation, and display the actual result.