A Better Way To Learn JavaScript - Advanced JS
A Better Way To Learn JavaScript - Advanced JS
Let's tackle some advanced JavaScript concepts.
About the Book
This is the fifth book in this 5-book book series.
Bundles that include this book
Table of Contents
-
Chapter 0: Introduction
- Book 1: The Basics
- Book 2: Built-in Objects
- Book 3: Useful Snippets
- Book 4: Building Mini Apps
- Book 5: Advanced JavaScript
-
Chapter 1: Browser APIs (aka Web APIs)
- Introduction
- The available browser APIs list
- Ambient Light Events
- Background Tasks
- Barcode Detection API
- Battery API
- Beacon
- Bluetooth API (experimental)
- Broadcast Channel API
- CSS Counter Styles
- CSS Font Loading API (experimental)
- CSS Painting API
- CSS Typed OM API
- CSSOM (CSS Object Model)
- Canvas API
- Channel Messaging
- Clipboard API
- Console API
- Contact Picker API
- Content Index API
- Credential Management API
- DOM
- Encoding API
- Encrypted Media Extensions
- Fetch API
- File System API
- File System Access API
- Frame Timing API (Experimental)
- Fullscreen API
- Gamepad API
- Geolocation API
- HTML Drag and Drop API
- HTML Sanitizer API
- High Resolution Time
- History API
- Image Capture API
- IndexedDB
- Intersection Observer API
- Long Tasks API (Experimental)
- Media Capabilities API
- Media Capture and Streams
- Media Session API
- Media Source Extensions
- MediaStream Recording
- Navigation Timing
- Network Information API
- Page Visibility API
- Payment Request API
- Performance API
- Performance Timeline API
- Periodic Background Sync
- Permissions API
- Picture-in-Picture API
- Pointer Events
- Pointer Lock API
- Proximity Events (Experimental)
- Push API (Experimental)
- Resize Observer API
- Resource Timing API
- Screen Capture API
- Screen Wake Lock API
- Server Sent Events
- Service Workers API
- Storage
- Storage Access API
- Streams
- Touch Events
- URL API
- Vibration API
- Visual Viewport
- Web Animations
- Web Audio API
- Web Authentication API
- Web Crypto API
- Web Notifications
- Web Storage API
- Web Workers API
- WebGL
- WebRTC
- WebVR API
- WebVTT
- WebXR Device API
- Websockets API
-
Chapter 2: Important browser APIs in more depth
- Ambient Light Events
- Background Tasks
- Barcode detection API
- Canvas API
- Clipboard API
- Console API
- DOM API
- Fetch API
- HTML Drag and Drop API
- History API
- IndexedDB API
- Intersection Observer API
- Picture-in-picture API
- Resize Observer API
- Web Animations API
- Web Audio API
- Web GL API
- WebRTC API
-
Chapter 3: The DOM API in depth
- 3.1. The DOM is a tree of JS Node Objects
- 3.2. Node Object Types
- 3.3 DOM Interfaces
- 3.4. The Node hierarchy and the Document hierarchy
- 3.5 The most frequently used methods of the DOM API
- 3.6 Other interesting DOM snippets
- 3.7 How DOM extension works
- 3.8 Extending an HTML element
- 3.9 The overview of DOM interfaces
-
Chapter 4: Memory, memory management, and garbage collection in JavaScript
- Memory management
- Heap and stack in memory allocation
- Automatic memory allocation in JavaScript: static and dynamic allocation
- Memory life cycle in JavaScript
- References in JS
- The Garbage Collector
- JavaScript apps often use more memory then they have to
- Memory Leaks: the usual suspects
- Finding memory leaks
- Fixing memory leaks
-
Chapter 5: Design Patterns in JavaScript
- Characteristics of design patterns
- The Difference Between Design Patterns and Algorithms
- Different Kinds of Design Patterns
- Creational Design Patterns
- Structural Design Patterns
- Behavioral Design Patterns
- Conclusion
-
Chapter 6: Algorithm complexity and Big O notation in JavaScript
- An algorithm is a recipe
- Algorithm complexity: space and time
- Time complexity: a practical example
- The Big O notation
- Time complexity of built-in JavaScript methods and expressions
- An overview of time complexity with examples
- Practice: Determining time complexity of JavaScript snippets
- Some common algorithms in JavaScript
-
Chapter 7: Data structures and algorithms in JavaScript
- The importance of data structures
- Arrays
- Linked Lists
- Stacks
- Queues and Dequeues
- Dictionaries and Hashes
- Sets
- Trees
- Graphs
-
Chapter 8: Advanced techniques (memoization, debouncing, throtlling, recursion, etc.)
- Memoization
- Debouncing
- Throtlling
- Recursion
- Chapter 9: Advanced JSON
- Chapter 10: Advanced Functional Programming
-
Chapter 11: Webpack quick start
- Webpack installation
- Minimal webpack example
-
Adding minimal possible code to
index.js
- How does webpack bundle modules?
- Tracking changes to our source code using the watch flag
- Adding the webpack.config.js file
- Outputting a web page using webpack
- Outputting a custom HTML file using html-webpack-plugin
- Adding another JavaScript module
- Using a webpack loader to compile SCSS to CSS
- Using Babel with webpack
- working with JS proposal syntax
- code splitting
- webpack-merge
- webpack-dev-server
- webpack source maps
- hot module replacement
- webpack-bundle-analyzer
- Chapter 12: Understanding Babel
-
Chapter 13: Understanding Node.js
- Installing and setting up
- Revisiting the Node.js ecosystem
- Node modules
- Writing a server
- Streams, pipes, and stream events
- Working with the filesystem
- Introducing express
- Routing and Middleware
- Error Handling
- Writing a simple fullstack JavaScript app
-
Chapter 14: Test-Driven Development
- What is TDD
- Automated tests before the code
- Why TDD?
- With TDD, it’s more likely that the code that worked yesterday, still works today
- Different kinds of tests
- A general overview of writing code the TDD way
- Unit testing in practice
- Getting started with Jest
- Writing our first test
- Chapter 15: JavaScript Security
-
Chapter 16: RxJS and observables
- Streams of data
- Reactive JavaScript
- What kind of data can come from the observable stream?
- Subscribing to observables
- Chapter 17: Clean Code in JavaScript
-
Chapter 18: Workers
- Two major types of workers
- Why do we need workers?
- Worker access limitations
- The Worker constructor
- Chapter 19: Progressive Web Apps
- Chapter 20: Improving our workflows
- Chapter 21: Chrome Dev Tools
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.
See full terms
80% Royalties. Earn $16 on a $20 book.
We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earnedover $12 million USDwriting, 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