What does this program print?

from call, apply and bind
Node 24 intermediate 2 min

What does this program print?

JavaScript
'use strict';

function show(label) {
  return `${label}:${this.id}`;
}

const base = { id: 'base' };
const first = show.bind({ id: 'one' }, 'bound');
const second = first.bind({ id: 'two' }, 'later');

console.log(show.call(base, 'call'));
console.log(show.apply(base, ['apply']));
console.log(second());
Open in playground
Report an error