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

Exercise prompt

Extract Object Properties

Object destructuring creates variables whose names match object properties. Property order does not matter.

Example

const book = { title: "Dune", pages: 412 }; const { title, pages } = book;

Your task

Before running the code, predict the two extracted values. Replace the placeholder declarations and empty prediction, destructure course into title and lessons, then keep the Actual: line.