Содержание
- 2. AGENDA Arrow functions Default parameters IIFE
- 3. ARROW FUNCTIONS An arrow function expression is a syntactically compact alternative to a regular function expression
- 4. ARROW FUNC vs REGULAR FUNC An arrow function has not its own bindings to the: this,
- 5. COMPACT FORM If we have single line operation in function, we can use short-compact form of
- 6. DEFAULT PARAMETERS Default function parameters allow named parameters to be initialized with default values if no
- 7. WHY WE NEED THIS? Function parameters default to undefined. However, it's often useful to set a
- 8. BEFORE DEFAULT PARAMETERS Examples of expressions that can be converted to false are: null, NaN, 0,
- 9. IIFE An IIFE (Immediately Invoked Function Expression) is a JavaScript function that runs as soon as
- 10. SELF-EXECUTING ANONYMOUS FUNCTION It is a design pattern which is also known as a Self-Executing Anonymous
- 12. Скачать презентацию