

An Introduction to JavaScript......Page 5Manuals and specifications......Page 8Code editors......Page 9Developer console......Page 11Hello, world!......Page 13Code structure......Page 16The modern mode, "use strict"......Page 20Variables......Page 22Data types......Page 30Type Conversions......Page 36Operators......Page 40Comparisons......Page 50Interaction: alert, prompt, confirm......Page 55Conditional operators: if, '?'......Page 57Logical operators......Page 64Loops: while and for......Page 72The "switch" statement......Page 82Functions......Page 86Function expressions and arrows......Page 97JavaScript specials......Page 107Debugging in Chrome......Page 112Coding Style......Page 118Comments......Page 18Ninja code......Page 129Automated testing with mocha......Page 134Polyfills......Page 146Objects......Page 147Garbage collection......Page 164Symbol type......Page 171Object methods, "this"......Page 177Object to primitive conversion......Page 186Constructor, operator "new"......Page 191Methods of primitives......Page 197Numbers......Page 201Strings......Page 212Arrays......Page 227Array methods......Page 239Iterables......Page 258Map, Set, WeakMap and WeakSet......Page 264Object.keys, values, entries......Page 276Destructuring assignment......Page 280Date and time......Page 291JSON methods, toJSON......Page 302Recursion and stack......Page 313Rest parameters and spread operator......Page 327Closure......Page 332The old "var"......Page 350Global object......Page 353Function object, NFE......Page 355The "new Function" syntax......Page 363Scheduling: setTimeout and setInterval......Page 365Decorators and forwarding, call/apply......Page 373Function binding......Page 385Currying and partials......Page 390Arrow functions revisited......Page 104Object properties configuration......Page 399Property flags and descriptors......Page 400Property getters and setters......Page 405Prototypal inheritance......Page 410F.prototype......Page 420Native prototypes......Page 425Prototype methods, objects without __proto__......Page 431Class basic syntax......Page 437Class inheritance......Page 444Static properties and methods......Page 457Private and protected properties and methods......Page 461Extending built-in classes......Page 468Class checking: "instanceof"......Page 471Mixins......Page 476Error handling, "try..catch"......Page 480Custom errors, extending Error......Page 494Introduction: callbacks......Page 501Promise......Page 507Promises chaining......Page 515Error handling with promises......Page 524Promise API......Page 530Promisification......Page 536Microtasks......Page 539Async/await......Page 541Generators......Page 549Async iterators and generators......Page 560Modules, introduction......Page 567Export and Import......Page 574Dynamic imports......Page 583Proxy and Reflect......Page 585Eval: run a code string......Page 604
show more...Just click on START button on Telegram Bot