Skip to content

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

+1-1
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)