Thursday, June 10, 2021

Benefit of Arrow function


Two major benefit

1. A very clean concise syntax 

2. More intuitive scoping and this binding.

(arrow functions take the this from their surroundings (lexical binding))

No comments:

Followers

Link