

An Introduction to JavaScript......Page 5Manuals and specifications......Page 8Code editors......Page 9Developer console......Page 10Hello, world!......Page 13Code structure......Page 16The modern mode, "use strict"......Page 20Variables......Page 22Numbers......Page 30Type Conversions......Page 35Operators......Page 39Comparisons......Page 49Interaction: alert, prompt, confirm......Page 54Conditional operators: if, '?'......Page 56Logical operators......Page 63Loops: while and for......Page 71The "switch" statement......Page 81Functions......Page 85Function expressions......Page 96Arrow functions, the basics......Page 103JavaScript specials......Page 105Debugging in Chrome......Page 111Coding Style......Page 117Comments......Page 18Ninja code......Page 128Automated testing with Mocha......Page 133Polyfills......Page 145Objects......Page 146Garbage collection......Page 163Symbol type......Page 170Object methods, "this"......Page 176Object to primitive conversion......Page 185Constructor, operator "new"......Page 191Methods of primitives......Page 196BigInt......Page 31Arrays......Page 226Array methods......Page 238Iterables......Page 257Map and Set......Page 263WeakMap and WeakSet......Page 271Object.keys, values, entries......Page 277Destructuring assignment......Page 280Date and time......Page 292JSON methods, toJSON......Page 303Recursion and stack......Page 314Rest parameters and spread operator......Page 327Closure......Page 332The old "var"......Page 350Global object......Page 353Function object, NFE......Page 355The "new Function" syntax......Page 362Scheduling: setTimeout and setInterval......Page 365Decorators and forwarding, call/apply......Page 373Function binding......Page 384Arrow functions revisited......Page 392Property flags and descriptors......Page 394Property getters and setters......Page 401Prototypal inheritance......Page 405F.prototype......Page 415Native prototypes......Page 420Prototype methods, objects without __proto__......Page 426Class basic syntax......Page 432Class inheritance......Page 439Static properties and methods......Page 451Private and protected properties and methods......Page 456Extending built-in classes......Page 463Class checking: "instanceof"......Page 465Mixins......Page 470Error handling, "try..catch"......Page 474Custom errors, extending Error......Page 488Introduction: callbacks......Page 495Promise......Page 501Promises chaining......Page 509Error handling with promises......Page 517Promise API......Page 521Promisification......Page 527Microtasks......Page 529Async/await......Page 531Generators......Page 539Async iterators and generators......Page 549Modules, introduction......Page 556Export and Import......Page 564Dynamic imports......Page 573Proxy and Reflect......Page 575Eval: run a code string......Page 596Currying......Page 599
show more...Just click on START button on Telegram Bot