You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The style guide recommends using arrow functions for anonymous functions (Section 8.1). While I agree with this recommendation, I think it would be helpful to add more examples showing when traditional functions might still be preferred, such as:
When you need the function to be hoisted
When you need to use this binding differently
When you need the arguments object
What do you think about adding these clarifications?
The text was updated successfully, but these errors were encountered:
The style guide recommends using arrow functions for anonymous functions (Section 8.1). While I agree with this recommendation, I think it would be helpful to add more examples showing when traditional functions might still be preferred, such as:
this
binding differentlyarguments
objectWhat do you think about adding these clarifications?
The text was updated successfully, but these errors were encountered: