Kevin Powell - CommunityKP-C
Kevin Powell - Communityβ€’15mo agoβ€’
15 replies
snxxwyy

arrow function .this value

Hey, so i'm aware that in an arrow function, .this equates to the window and not the current object. If this is the case, in an arrow function, wouldn't defining a .this value essentially be the same as defining a global variable outside of the function since they both equate to the window? If so, why would you need to utilize .this is in a arrow function?

thanks in advance.
Was this page helpful?