Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Improved arrow function arguments example#3868

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
jaskirank1 wants to merge1 commit intojavascript-tutorial:master
base:master
Choose a base branch
Loading
fromjaskirank1:patch-1

Conversation

jaskirank1
Copy link

The updated example better demonstrates how arguments behaves inside arrow functions. In the previous example, the arrow function was invoked without passing its own parameters, so it wasn’t obvious that arguments inside an arrow function refers to the arguments of the outer normal function.

In the new example, we explicitly pass a parameter ("Hii") to the arrow function, and also log arguments[0] inside it. This makes it clear that arguments[0] is still taken from the outer function (1) and not from the arrow function’s own parameter list, illustrating the lexical binding behavior of arguments in arrow functions.

Improved arrow function "arguments" example in rest/spread parameters article
@javascript-translate-botjavascript-translate-bot added review neededReview needed, please approve or request changes labelsAug 11, 2025
@javascript-translate-botjavascript-translate-bot requested a review froma teamAugust 11, 2025 10:52
@CLAassistant
Copy link

CLAassistant commentedAug 11, 2025
edited
Loading

CLA assistant check
All committers have signed the CLA.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
review neededReview needed, please approve or request changes
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@jaskirank1@CLAassistant@javascript-translate-bot

[8]ページ先頭

©2009-2025 Movatter.jp