JSFiddle - React, Tailwind, and code Playground
by shivaay123
JavaScript
const indivi = {
fName: 'Shiv',
lName: 'Yadav'
}
function gt(wave, sms) {
return `${wave} ${this.fName}. ${sms}`;
}
let output = gt.apply(indivi, ['Hello', 'Where are you going?']);
console.log(output);