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

Exercise prompt

Repair an Entry Value

Object.entries(object) creates arrays shaped like [propertyName, value]. The starter reads a third position that does not exist.

Example

const entry = ["theme", "dark"]; console.log(entry[0], entry[1]);

Your task

Change only the incorrect entry index so every line displays a property name and its value: name: Pen and price: 12.