let user = {
firstName: 'Testname'
}
function testAlert() {
alert(this.firstName);
}
let funcUser = testAlert.call(user); // Testname
funcUser();
Shows error in console:
Uncaught
TypeError
:funcUser
is not a function
I am not getting why it is showing error.
Thanks