Skip to content

Docs: clarify exceptions for traditional functions#3222

Open
Developer-shivamMishra wants to merge 1 commit intoairbnb:masterfrom
Developer-shivamMishra:clarify-traditional-functions
Open

Docs: clarify exceptions for traditional functions#3222
Developer-shivamMishra wants to merge 1 commit intoairbnb:masterfrom
Developer-shivamMishra:clarify-traditional-functions

Conversation

@Developer-shivamMishra
Copy link

Adds clarifications to Section 8.1 (Arrow Functions) on when traditional functions are preferred:

  • Function hoisting
  • Dynamic this binding (e.g., event handlers)
  • Access to arguments object

Includes short examples. Complements the arrow function recommendation without weakening it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants