|Language:||English, Arabic, Hindi|
|Genre:||Health & Fitness|
|ePub File Size:||22.38 MB|
|PDF File Size:||9.53 MB|
|Distribution:||Free* [*Register to download]|
Arrays are part of many different programming languages.
A basic function looks like this:. As you can see, it consists the function keyword plus a name. You can create your own, but to make your life easier — there are also a number of default functions.
A common application for functions is the output of data. For the output, you have the following options:. Loops are part of most programming languages. They allow you to execute blocks of code desired number of times with different values:. These types of statements are easy to understand. Using them, you can set conditions for when your code is executed.
If certain conditions apply, something is done, if not — something else is executed. However, using the switch you select one of several code blocks to execute.
Table of contents
Part 1. We concentrate on the language itself here, with the minimum of environment-specific notes.
The modern mode, "use strict". Type Conversions. Conditional operators: Logical operators. The "switch" statement.
Object to primitive conversion. Constructor, operator "new". Data types. Methods of primitives. Destructuring assignment. Advanced working with functions.
Rest parameters and spread operator. Function object, NFE. The "new Function" syntax. Currying and partials.
Arrow functions revisited. Object properties configuration. Property flags and descriptors. Property getters and setters.
Prototypes, inheritance. Prototypal inheritance. Native prototypes. Getting all properties. Class inheritance. Static properties and methods. Private and protected properties and methods. Extending build-in classes. Class checking: Error handling.
Error handling, "try.. Custom errors, extending Error.
Promises chaining. Error handling with promises. Microtasks and event loop. Generators, advanced iteration. Async iteration and generators.
Modules, introduction. Dynamic imports. Browser environment, specs. Node properties: Attributes and properties. Modifying the document.