Last updated on 2020-01-22
About the Book
Enjoy the reading!
Intro. Few words about the book
- A brief history of the book
- Structure of the book
- Who this book is for?
- Typographic conventions
- What’s the best way for following the examples?
- Errata and other requests
- About the author
- Intro. Few words about the book
- ECMAScript, and other technical terms
- Strings, numbers, variables and all in between
- Standing on the shoulders of a giant object
- Global Execution Context and Call Stack
- Callback hell and Promises
- Promises and error handling
- Promises and Microtask Queue
- Asynchronous evolution: from Promises to async/await
- Global madness
- Demystifying closures
- The need for closures
- Hoisting, we need to talk
- Everything is an object!
- Creating and linking objects
- Checking the “linkage”
- Class illusion
- Demystifying “this”
- Rule number 1: falling back to the global “this”
- Rule number 2: when “this” is my host object
- Rule number 3: tell me who is “this”
- Rule number 4: “new” binding
- Arrow functions and “this”
- BONUS exercise: Creeping into “this”
- When a number becomes a string
- I’m not a number!
- Comparison operators: equal equal or not?
- Primitives and objects
- The Document Object Model
- Nodes, elements, and DOM manipulation
- DOM and events
- REST API and XMLHttpRequest
- Asynchronous evolution: from XMLHttpRequest to Fetch
- Rebuilding the Fetch API from scratch (for fun and profit)
Chapter 10. HTML forms and playing with the storage API
- A re-introduction to HTML forms
- HTML forms in action
- Extracting data from an HTML form
- Getting to know localStorage and laying out our classes
- Interacting with localStorage and “this” comes to bite again
- Going idiomatic with FormData
- The formdata event
Chapter 11. First steps with TypeScript
- Laying down the foundations
- Getting started with TypeScript
- Digging deeper into TypeScript types
- TypeScript types, objects, and interfaces
- Narrowing types, Partial, and type aliases
- Assembling a TypeScript class
- Wiring up our classes and a bit of JSDoc
- ECMAScript private fields and the TypeScript private modifier
Part 3 - Appendix
- Chapter 11. First steps with TypeScript
The Leanpub 45-day 100% Happiness Guarantee
Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms
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), EPUB (for phones and tablets) and MOBI (for 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.