Ishwar Rimal
Jan 28, 2024

--

The question was intended for the case when we use arrow function, but glad you answered for the second case with this great explanation. Will be helpful for others.

--

--

Ishwar Rimal
Ishwar Rimal

Written by Ishwar Rimal

Senior FrontEnd Engineer at Intuit. 8 years experience. I write articles on JavaScript, React, Web Optimisation, Startups, Work Life Balance, etc. ❤️ JavaScrip

No responses yet