| Start |
|---|
Default Function Parameters With the addition of default function parameters you can now make arguments optional and have them default to a value of your choice. |
Rest Parameters By prefacing the last argument of your function with |
Spread Operator The spread syntax allows an expression to be expanded in places where multiple arguments (for function calls) or multiple elements (for array literals) or multiple variables are expected. Just like the rest parameters simply preface your array with |
| Arrow Functions Arrow function is the new way of defining a function in ECMAScript 6. |
| "this" in Arrow Function this in function refers to instance object used to call that function but this in arrow function is equal to this of function in which arrow function is defined. Let's understand using diagram Understanding using examples. In arrow function, this is lexical scope which is the scope of function where arrow function is defined. Note: - global object is printed in Node.Js and windows object in browser. |
Read Article
https://develop.horje.com/learn/1434/reference