Bittu Kumar
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.

--

--

Bittu Kumar
Bittu Kumar

Written by Bittu Kumar

Exploring Angular and Frontend development.

Responses (1)