const fordFocus = {
    make: 'Ford',
    model: 'Focus',
    inflateTyre(wheel, pressure) {
        console.log(
            `Inflating wheel ${wheel} on the ${this.make} ${this.model} to a pressure of ${pressure}.`
        );
    },
};

const toyotaHilux = {
    make: 'Toyota',
    model: 'Hilux',
};

// Bind without specifying the parameters, so they can be specified at call time
const boundInflateToyotaTyre2 = fordFocus.inflateTyre.bind(toyotaHilux);
boundInflateToyotaTyre2(3, 30); // Inflating wheel 3 on the Toyota Hilux to a pressure of 30.