JavaScript funciones: .call() .apply() .bind() simplificadas. const sayHi = function() { console.log(`Hi ${this.name}`) }: const person = { name = "foxy", }; sayHi.call(person); sayHi.apply(person); sayHi.bind(person)(); .call() const addItems = function(item1, item2){ this.items.push(item1, item2); }; const cart = { item: [], }; addItems.call(cart, 'lettuce', 'watermelon'); const addItems = function(){ thsi.items.push(...arguments); }; .apply() addItems.apply(cart, ['egg fried rice', 'cucumber']); .bind() const boundAddItems = addItems.bind(cart); boundAddItems('milk', 'jellybeans', 'more jellybeans'); document.querySelector('bitton') .addEventListener('click', boundAddItems);