Everwhy Open Everwhy
Computing

How do web apps wait for data without freezing the page?

JavaScript 201 · about 13 minutes a level

The second JavaScript class: functions in depth with closures and callbacks, modern tools for arrays and objects such as destructuring, spread and reduce, classes, handling errors, asynchronous code with promises and async/await, talking to web APIs with fetch, modules and tooling, and a small app that brings it all together.

Open in Everwhy Continue on the web

Go deeper, level by level

  1. Functions in depth: Closures: functions that remember, Higher-order functions and callbacks, Default parameters, rest and spread
  2. Modern arrays and objects: Destructuring arrays and objects, Spread, copies and updates, reduce, find, some and every, Map and Set
  3. Classes and objects: Classes, constructors and methods, Inheritance with extends and super, Understanding this, Private fields and encapsulation
  4. Errors and debugging: try, catch and finally, Throwing errors and custom error classes, Debugging in the browser
  5. Asynchronous JavaScript: The event loop: how JavaScript waits, Promises, async and await
  6. Talking to servers: HTTP and web APIs, Getting data with fetch(), Sending data: POST requests and forms, Keeping keys and users safe
  7. Modules and tooling: ES modules: import and export, npm and packages, Linters, formatters and bundlers, A first taste of TypeScript
  8. A small app from start to finish: Events in depth: bubbling and delegation, Saving data in the browser with localStorage, Project: planning a to-do app, Project: writing and testing the to-do app

Every lesson shows its sources and how sure we are, and is checked by Everwhy.