Please see the code below:
let xy = {name:"matt", age: 44};
let greetFunc = nickName => "Hello " + nickName + ". Your age is " + this.age + " now";
console.log(greetFunc.call(xy, "vms"));
The result is:
Hello vms. Your age is undefined now
Why is 'this.age' returning 'undefined'? Any help would be appreciated. Thanks.