Leanpub Header

Skip to main content

A Better Way To Learn JavaScript - Advanced JS

Let's tackle some advanced JavaScript concepts.

Skip thousands of hours of trial and error experiences and gain an in-depth knowledge of the JavaScript language with this approachable book series.

The author is letting you choose the price you pay for this book!

Pick Your Price...
PDF
EPUB
WEB
About

About

About the Book

This is the fifth book in this 5-book book series.

Share this book

Categories

Price

Pick Your Price...

Minimum price

$19.00

$29.00

You pay

$29.00

Author earns

$23.20
$

All prices are in US $. You can pay in US $ or in your local currency when you check out.

EU customers: prices exclude VAT, which is added during checkout.

...Or Buy With Credits!

Number of credits (Minimum 2)

2
The author will earn $24.00 from your purchase!
You can get credits monthly with a Reader Membership

Author

About the Author

Ajdin Imsirovic

Ajdin Imsirovic is a full-stack web developer who has published several courses (way back in 2015) on the subject of web design and web development. 

Before self-publishing books on Leanpub, he authored four books on front-end development for Packt Publishing:

  1. Vue CLI 3 Quick Start Guide (Build and maintain Vue.js applications quickly with the standard CLI), May 2019
  2. Vue.js Quick Start Guide (Learn how to build amazing and complex reactive web applications easily using Vue.js), October 2018
  3. Elm Web Development (An introductory guide to building functional web apps using Elm), March 2018
  4. Bootstrap 4 Cookbook (Over 75 recipes to help you build elegant and responsive web applications with Bootstrap 4), June 2017

Additionally, he's published a number of books on the Leanpub platform, specifically:

  1. A Better Way to Learn JavaScript - The Basics: https://bit.ly/abwtljs1
  2. A Better Way to Learn JavaScript - Built-in Objects: https://bit.ly/abwtljs2
  3. A Better Way to Learn JavaScript - Useful Snippets: https://bit.ly/abwtljs3
  4. A Better Way to Learn JavaScript - Mini Apps: https://bit.ly/abwtljs4
  5. A Better Way to Learn JavaScript - Advanced JavaScript: https://bit.ly/abwtljs5
  6. Angular From Scratch: https://bit.ly/ai-afs
  7. Vue.js From Scratch: https://bit.ly/ai-vfs
  8. React from Scratch: https://leanpub.com/react-from-scratch
  9. Building Amazing Layouts - Learn the Basics of HTML5, CSS3, and Bootstrap 5: https://bit.ly/bldamzlyts1
  10. Building Amazing Layouts - Bootstrap 5 Layouts in Depth: https://bit.ly/bldamzlyts2
Leanpub Podcast

Episode 208

An Interview with Ajdin Imsirovic

Contents

Table of Contents

Chapter 0: Introduction

  1. Book 1: The Basics
  2. Book 2: Built-in Objects
  3. Book 3: Useful Snippets
  4. Book 4: Building Mini Apps
  5. Book 5: Advanced JavaScript

Chapter 1: Browser APIs (aka Web APIs)

  1. Introduction
  2. The available browser APIs list
  3. Ambient Light Events
  4. Background Tasks
  5. Barcode Detection API
  6. Battery API
  7. Beacon
  8. Bluetooth API (experimental)
  9. Broadcast Channel API
  10. CSS Counter Styles
  11. CSS Font Loading API (experimental)
  12. CSS Painting API
  13. CSS Typed OM API
  14. CSSOM (CSS Object Model)
  15. Canvas API
  16. Channel Messaging
  17. Clipboard API
  18. Console API
  19. Contact Picker API
  20. Content Index API
  21. Credential Management API
  22. DOM
  23. Encoding API
  24. Encrypted Media Extensions
  25. Fetch API
  26. File System API
  27. File System Access API
  28. Frame Timing API (Experimental)
  29. Fullscreen API
  30. Gamepad API
  31. Geolocation API
  32. HTML Drag and Drop API
  33. HTML Sanitizer API
  34. High Resolution Time
  35. History API
  36. Image Capture API
  37. IndexedDB
  38. Intersection Observer API
  39. Long Tasks API (Experimental)
  40. Media Capabilities API
  41. Media Capture and Streams
  42. Media Session API
  43. Media Source Extensions
  44. MediaStream Recording
  45. Navigation Timing
  46. Network Information API
  47. Page Visibility API
  48. Payment Request API
  49. Performance API
  50. Performance Timeline API
  51. Periodic Background Sync
  52. Permissions API
  53. Picture-in-Picture API
  54. Pointer Events
  55. Pointer Lock API
  56. Proximity Events (Experimental)
  57. Push API (Experimental)
  58. Resize Observer API
  59. Resource Timing API
  60. Screen Capture API
  61. Screen Wake Lock API
  62. Server Sent Events
  63. Service Workers API
  64. Storage
  65. Storage Access API
  66. Streams
  67. Touch Events
  68. URL API
  69. Vibration API
  70. Visual Viewport
  71. Web Animations
  72. Web Audio API
  73. Web Authentication API
  74. Web Crypto API
  75. Web Notifications
  76. Web Storage API
  77. Web Workers API
  78. WebGL
  79. WebRTC
  80. WebVR API
  81. WebVTT
  82. WebXR Device API
  83. Websockets API

Chapter 2: Important browser APIs in more depth

  1. Ambient Light Events
  2. Background Tasks
  3. Barcode detection API
  4. Canvas API
  5. Clipboard API
  6. Console API
  7. DOM API
  8. Fetch API
  9. HTML Drag and Drop API
  10. History API
  11. IndexedDB API
  12. Intersection Observer API
  13. Picture-in-picture API
  14. Resize Observer API
  15. Web Animations API
  16. Web Audio API
  17. Web GL API
  18. WebRTC API

Chapter 3: The DOM API in depth

  1. 3.1. The DOM is a tree of JS Node Objects
  2. 3.2. Node Object Types
  3. 3.3 DOM Interfaces
  4. 3.4. The Node hierarchy and the Document hierarchy
  5. 3.5 The most frequently used methods of the DOM API
  6. 3.6 Other interesting DOM snippets
  7. 3.7 How DOM extension works
  8. 3.8 Extending an HTML element
  9. 3.9 The overview of DOM interfaces

Chapter 4: Memory, memory management, and garbage collection in JavaScript

  1. Memory management
  2. Heap and stack in memory allocation
  3. Automatic memory allocation in JavaScript: static and dynamic allocation
  4. Memory life cycle in JavaScript
  5. References in JS
  6. The Garbage Collector
  7. JavaScript apps often use more memory then they have to
  8. Memory Leaks: the usual suspects
  9. Finding memory leaks
  10. Fixing memory leaks

Chapter 5: Design Patterns in JavaScript

  1. Characteristics of design patterns
  2. The Difference Between Design Patterns and Algorithms
  3. Different Kinds of Design Patterns
  4. Creational Design Patterns
  5. Structural Design Patterns
  6. Behavioral Design Patterns
  7. Conclusion

Chapter 6: Algorithm complexity and Big O notation in JavaScript

  1. An algorithm is a recipe
  2. Algorithm complexity: space and time
  3. Time complexity: a practical example
  4. The Big O notation
  5. Time complexity of built-in JavaScript methods and expressions
  6. An overview of time complexity with examples
  7. Practice: Determining time complexity of JavaScript snippets
  8. Some common algorithms in JavaScript
  9. Sock merchant algorithm
  10. Ransom note algorithm
  11. Palindrome test algorithm
  12. Caesar cipher
  13. Reverse Words
  14. Reverse Array in Place
  15. Mean Median Mode
  16. Two Sum
  17. Binary Search
  18. Fibonacci
  19. Memoized Fibonacci
  20. Sieve of Eratosthenes
  21. Bubble Sort
  22. Quick Sort
  23. Merge Sort
  24. Heap Sort
  25. Max Stock Profit
  26. Tower of Hanoi
  27. The Traveling Salesman

Chapter 7: Data structures and algorithms in JavaScript

  1. The importance of data structures
  2. Arrays
  3. Objects and arrays
  4. Linked Lists
  5. Stacks
  6. Queues and Dequeues
  7. Dictionaries and Hashes
  8. Sets
  9. Trees
  10. Graphs

Chapter 8: Advanced techniques (memoization, debouncing, throtlling, recursion, etc.)

  1. Memoization
  2. Debouncing
  3. Throtlling
  4. Recursion
  5. Currying
  6. Composition

Chapter 9: Advanced JSON

  1. JSON Schema
  2. JSON-LD
  3. Handling Large JSON Files
  4. JSON and Security Concerns
  5. Some additional advanced JSON concepts

Chapter 10: Functional Programming in Depth

  1. Why learn functional programming?
  2. Declarative programming
  3. In FP, data and functions are clearly separated
  4. OOP vs FP
  5. Higher-order functions and functions as first-class citizens
  6. Immutability
  7. Pure Functions
  8. Closures and Partial Application
  9. Functional Composition
  10. Recursion

Chapter 11: Webpack quick start

  1. 11.1 Webpack installation
  2. 11.2 Minimal webpack example
  3. 11.3 Adding minimal possible code to index.js
  4. 11.4 How does webpack bundle modules?
  5. 11.5 Tracking changes to our source code using the watch flag
  6. 11.6 Adding the webpack.config.js file
  7. 11.7 Outputting a web page using webpack
  8. 11.8 Outputting a custom HTML file using html-webpack-plugin
  9. 11.9 Adding another JavaScript module
  10. 11.10 Using a webpack loader to compile SCSS to CSS
  11. 11.11 Using Babel with webpack
  12. 11.12 Working with JS proposal syntax
  13. 11.13 Code splitting
  14. 11.14 webpack-merge
  15. 11.15 webpack-dev-server
  16. 11.16 webpack source maps
  17. 11.17 Hot module replacement
  18. 11.18 webpack-bundle-analyzer

Chapter 12: Understanding Babel

  1. Introduction
  2. What is Babel?
  3. Key Features and Benefits
  4. Setting Up Babel
  5. Babel Plugins
  6. Babel CLI
  7. Conclusion

Chapter 13: Understanding Node.js

  1. 13.1 Installing and setting up
  2. 13.2 Revisiting the Node.js ecosystem
  3. 13.3 Node modules
  4. 13.4 Writing a server
  5. 13.5 Streams, pipes, and stream events
  6. 13.6 Working with the filesystem
  7. 13.7 Introducing Express
  8. 13.8 Routing and Middleware
  9. 13.9 Error Handling
  10. 13.10 Writing a simple full-stack JavaScript app
  11. 13.11 Build a simple full-stack JavaScript application using Node.js, Express.js, and MongoDB

Chapter 14: Test-Driven Development

  1. What is TDD
  2. Automated tests before the code
  3. Why TDD?
  4. With TDD, it’s more likely that the code that worked yesterday, still works today
  5. Different kinds of tests
  6. A general overview of writing code the TDD way
  7. Unit testing in practice
  8. Getting started with Jest
  9. Writing our first test

Chapter 15: JavaScript Security

  1. Cross-Site Scripting (XSS)
  2. Cross-Site Request Forgery (CSRF)
  3. Security Misconfiguration
  4. Insecure Direct Object References (IDOR)
  5. JavaScript Injection
  6. Conclusion

Chapter 16: RxJS and observables

  1. 16.1 What is a stream of data?
  2. Reactive JavaScript
  3. 16.2 What kind of data can come from the observable stream?
  4. 16.3 Subscribing to Observables
  5. 16.4 Manipulating Observables
  6. 16.5 What is a Subject in RxJS?
  7. 16.6 What is a BehaviorSubject?
  8. 16.6.1 Other types of Subjects
  9. 16.7 What is a Scheduler?
  10. 16.8 What is an Action?
  11. 16.9 Conclusion

Chapter 17: Crafting Clean Code in JavaScript

  1. Introduction
  2. Understandable and Meaningful Names
  3. Keep Functions Small and Focused
  4. Avoid Side Effects
  5. Use Object/Array Destructuring
  6. Consistent Error Handling
  7. Use of ES6+ Features
  8. Conclusion

Chapter 18: Workers

  1. 18.1 Two major types of workers
  2. 18.3 Why do we need workers?
  3. 18.4 Worker access limitations
  4. 18.5 The Worker constructor
  5. 18.6 Communication with Workers
  6. 18.7 Terminating Workers
  7. 18.8 Error Handling
  8. 18.9 Service Workers and Caching
  9. 18.10 Conclusion

Chapter 19: Building a Progressive Web App with Vanilla JavaScript

  1. Step 1: Setting Up the Project
  2. Step 2: Creating the HTML Layout
  3. Step 3: Creating the Service Worker
  4. Step 4: Registering the Service Worker
  5. Step 5: Fetching Weather Data
  6. Step 6: Refreshing Weather Data
  7. Step 7: The Web App Manifest

Chapter 20: Improving Workflows in JavaScript Development

  1. Step 1: Setting Up ESLint
  2. Step 2: Integrating ESLint with VS Code
  3. Step 3: Setting Up Prettier
  4. Step 4: Integrating Prettier with VS Code and ESLint
  5. Step 5: Useful VS Code Extensions
  6. Step 6: Useful VS Code Shortcuts
  7. Step 7: Other Productivity Tips

Chapter 21: Chrome Dev Tools

  1. Introduction
  2. Elements Panel
  3. Console Panel
  4. Sources Panel
  5. Network Panel
  6. Performance Panel
  7. Memory Panel
  8. Security Panel
  9. Lighthouse
  10. Device Mode
  11. Customization and Shortcuts
  12. Conclusion

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 earned over $14 million writing, 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