The Complete Guide to Modern JavaScript

Retired

This book is no longer available for sale.

The Complete Guide to Modern JavaScript

Learn everything from ES2015 to ES2018 and practice with more than 50 quizzes

About the Book

This book covers all the new features introduced to JavaScript from 2015 to 2018. Understand what are let and const, what are generators, promises and classes and much more.

After each chapter, test your understanding with more than 50 quizzes.

About the Author

Alberto Montalesi
Alberto Montalesi

Alberto is a self-taught software developer, currently living and working in Vietnam. Here he builds enterprise SaaS using Angular + TypeScript + NodeJs.

In his free time he writes articles and turorials on InspiredWebDev.com.

You can read more about him and his career switch decision here: https://inspiredwebdev.com/from-esl-teacher-to-software-developer

Table of Contents

  • Introduction
  • Chapter 1: Var vs Let vs Const & the temporal dead zon
  • Var
  • Let
  • Const
  • The content of a const is an Object
  • The temporal dead zone
  • When to use Var , Let and Const
  • Chapter 2: Arrow functions
  • What is an arrow function?
  • Implicitly return
  • Arrow functions are anonymous
  • Arrow function and the this keyword
  • When you should avoid arrow functions
  • Chapter 3: Default function arguments
  • Default function arguments
  • Chapter 4: Template literals
  • Interpolating strings
  • Expression interpolations
  • Create HTML fragments
  • Nesting templates
  • Add a ternary operator
  • Pass a function inside a template literal
  • Tagged template literals
  • Chapter 5: Additional string methods
  • Additional string methods
  • startsWith()
  • endsWith()
  • includes()
  • repeat()
  • Chapter 6: Destructuring
  • Destructuring Objects
  • Destructuring Arrays
  • Swapping variables with destructuring
  • Destructuring functions
  • Chapter 7: Iterables and looping
  • The for of loop
  • Iterating over an array
  • Iterating over an object
  • The for in loop
  • Difference between for of and for in
  • Chapter 8: Array improvements
  • Array.from()
  • Array.of()
  • Array.find()
  • Array.findIndex()
  • Array.some() & Array.every()
  • Chapter 9: Spread operator and rest parameters
  • The Spread operator
  • Combine arrays
  • Copy arrays
  • Spread into a function
  • Spread in Object Literals (ES 2018 / ES9)
  • The Rest parameter
  • Chapter 10: Object literal upgrades
  • Deconstructing variables into keys and values
  • Add functions to our Objects
  • Dynamically define properties of an Object
  • Chapter 11: Symbols
  • Chapter 12: Classes
  • Create a Class
  • Static methods
  • set and get
  • Extending our Class
  • Extending Arrays
  • Chapter 13: Promises
  • What is a Promise?
  • Callback hell
  • Create your own promise
  • Chaining promises
  • Promise.resolve() & Promise.reject()
  • Promise.all() & Promise.race()
  • Chapter 14: Generators
  • What is a Generator?
  • Looping over an array with a generator
  • Finish the generator with .return()
  • Catching errors with .throw()
  • Combining Generators with Promises
  • Chapter 15: Proxies
  • What is a Proxy?
  • How to use a Proxy ?
  • Chapter 16: Sets, WeakSets, Maps and WeakMaps
  • What is a Set ?
  • Loop over a Set
  • Remove duplicates from an array
  • What is a WeakSet ?
  • What is a Map ?
  • What is a WeakMap ?
  • Array.prototype.includes()
  • Combine includes() with fromIndex
  • The exponential operator
  • Chapter 18: ES2017 string padding, Object.entries() , Object.values() and more
  • String padding( padStart and padEnd )
  • Right align with padStart
  • Add a custom value to the padding
  • Object.entries() and Object.values()
  • Object.getOwnPropertyDescriptors()
  • Trailing commas in function parameter lists and calls
  • Shared memory and Atomics
  • Chapter 19: ES2017 Async and Await
  • Promise review
  • Async and Await
  • Error handling
  • Chapter 20: ES2018 what is coming?
  • Rest / Spread for Objects
  • Asynchronous Iteration
  • Promise.prototype.finally()
  • RegExp features
  • s (dotAll) flag for regular expression
  • RegExp named capture groups
  • RegExp Lookbehind Assertions
  • RegExp Unicode Property Escapes
  • Lifting template literals restriction

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub