Spot the bug in the account label

from Arrow functions
Node 24 intermediate 4 min 1 issue to find

Find why label reads the builder receiver instead of the account.

JavaScript
function buildAccount(name) {
  return {
    name,
    label: () => this.name,
  };
}

const account = buildAccount.call({ name: 'builder' }, 'west');
console.log(account.label());
Open in playground
Report an error