Spot the bug in the order projection

from Functions
Node 24 beginner 4 min 1 issue to find

Why does this generated projection produce only undefined values?

JavaScript
const orders = [{ id: 'A7' }, { id: 'B2' }];
const ids = orders.map((order) => {
  order.id;
});

console.log(ids);
Open in playground
Report an error