diff --git a/guide/english/javascript/arrow-functions/index.md b/guide/english/javascript/arrow-functions/index.md index e8c5cf0ee2..800bd86c25 100644 --- a/guide/english/javascript/arrow-functions/index.md +++ b/guide/english/javascript/arrow-functions/index.md @@ -80,7 +80,14 @@ function Person(){ var p = new Person(); ``` +An arrow function does not have its own `arguments` object. For example, if you do not know the number of arguments passed to a function, instead of using `arguments` you can use the `rest` operator: +```javascript +const myFunc = (...n) => { + console.log('The first argument is', n[0]); +} +myFunc(10,20,30,40,40); // output: The first argument is 10 +``` #### Further Reading MDN link