bindbeginnerconst obj = { x: 10 }
function getX() { return this.x }
const fn = getX.bind(obj)
fn() // β 10Use bind() when passing a method as a callback to preserve its this context.
bind() always returns a new function regardless of the original function. typeof the result is 'function'.
Challenge: Verify that typeof greet.bind({}) returns 'function'.