A function parameter can destructure an incoming object. The function body can then use the extracted names directly.
function printUser({ name, age }) {
console.log(name, age);
}Refactor getCourseLabel to destructure title and lessons in its parameter, then complete the label as JavaScript: 12 lessons. Do not read course.title or course.lessons in the body.