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

Exercise prompt

Read an Object Property

Dot notation reads a property when you know its name. Write the object name, a dot, and the property name.

Example

const city = { name: "Lund", country: "Sweden" }; console.log(city.name);

Your task

Read the supplied product's name into productName, then display Product: Notebook.