Build a register from student records. Keep the name, course, and active keys shown in the preceding demo: the transformation reads those exact keys.
First supply the records. Then implement activeRegister(records) so it uses its parameter rather than always reading the outer students variable. This makes the function reusable for another class list. Return an array of labels; the supplied probe joins them only for display.
A different register combines a filter with a map:
const books = [{ title: "Atlas", ready: true }, { title: "Drift", ready: false }];
const readyTitles = books.filter(book => book.ready).map(book => book.title);
console.log(readyTitles.join(", "));
Edit script.js, then use Run to inspect the supplied checkpoints. Use Submit to check your tasks in order. Keep the supplied probes; change only the requested definitions and final logs.
students with Ari (JavaScript, active), Bea (CSS, inactive), and Chen (JavaScript, active), using the keys name, course, and active."Name: Course" strings from activeRegister(records), using filter followed by map.Ari: JavaScript | Chen: JavaScript.Run your code after each small change. The Console shows supplied CHECK lines as you work and a separate joined register when you finish task 3.
Start with the smallest function signature, then test one case at a time.