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

Commit 2ca8f83

Browse files
committed
closes #3242
1 parent bf7d8bb commit 2ca8f83

File tree

1 file changed

+1
-1
lines changed
  • 1-js/06-advanced-functions/02-rest-parameters-spread

1 file changed

+1
-1
lines changed

‎1-js/06-advanced-functions/02-rest-parameters-spread/article.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function sum(a, b) {
2323
alert( sum(1, 2, 3, 4, 5) );
2424
```
2525

26-
There will be no error because of "excessive" arguments. But of course in the result only the first two will be counted.
26+
There will be no error because of "excessive" arguments. But of course in the result only the first two will be counted, so the result in the code above is `3`.
2727

2828
The rest of the parameters can be included in the function definition by using three dots `...` followed by the name of the array that will contain them. The dots literally mean "gather the remaining parameters into an array".
2929

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /