Change "rest operator" to say "rest parameter" in challenges and guide (#35496)

* change es6 challenges rest operator to param

* fix rest parameter typos

* change rest operator to parameter in guide

* fix casing

* change rest operator to rest parameter in guide

* change rest operator to rest parameter in curriculum

* remove extra whitespace

* remove whitespaces

* remove whitespace

* fix: removed arabic file

* fix: removed chinese file
This commit is contained in:
Deanna Tran
2019-05-08 10:30:24 -04:00
committed by Jaka Kranjc
parent 4f73b5a7f3
commit 338d7ee8a7
9 changed files with 25 additions and 26 deletions

View File

@@ -18,9 +18,9 @@ console.log(oneArg.length); // 1
### ES2015 Syntax
ES2015, or ES6 as it is commonly called, introduced the rest operator and default function parameters. Both of these additions change the way the `length` property works.
ES2015, or ES6 as it is commonly called, introduced the rest parameter and default function parameters. Both of these additions change the way the `length` property works.
If either the rest operator or default parameters are used in a function declaration the `length` property will only include the number of arguments before a rest operator or a default parameter.
If either the rest parameter or default parameters are used in a function declaration the `length` property will only include the number of arguments before a rest parameter or a default parameter.
```javascript
function withRest(...args) { }