Jan 7, 2022
here while creating method: getName inside the object, arrow function is used. and arrow function doesn't have the access of this keyword.
so name can't be accessed and it wont print anything.
here while creating method: getName inside the object, arrow function is used. and arrow function doesn't have the access of this keyword.
so name can't be accessed and it wont print anything.