How can we get the properties of post object to be available in getFullName function. I know if we can use function declaration intead of arrow function then 'this' will refer to the post object properties. But I was just wondering if we can achieve it using arrow function.
const post = {
firstname: 'temp',
lastname: 'code',
getFullName: () => {
return this.firstname + ' ' + this.lastname;
}
}