JSFiddle - React, Tailwind, and code Playground

by shivaay123

JavaScript

let worker1 = { name: 'Oli', email: '[email protected]' };
let worker2 = { name: 'Kp', email: '[email protected]' };
function invite(text, text2) {
   console.log(`${text} ${this.name}, ${text2}`);
}
invite.apply(worker1, ['Hello', 'How are you?']); 
invite.apply(worker2, ['Hello', 'How are you?']);