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.
Go deeper, level by level
- Functions in depth: Closures: functions that remember, Higher-order functions and callbacks, Default parameters, rest and spread
- Modern arrays and objects: Destructuring arrays and objects, Spread, copies and updates, reduce, find, some and every, Map and Set
- Classes and objects: Classes, constructors and methods, Inheritance with extends and super, Understanding this, Private fields and encapsulation
- Errors and debugging: try, catch and finally, Throwing errors and custom error classes, Debugging in the browser
- Asynchronous JavaScript: The event loop: how JavaScript waits, Promises, async and await
- Talking to servers: HTTP and web APIs, Getting data with fetch(), Sending data: POST requests and forms, Keeping keys and users safe
- Modules and tooling: ES modules: import and export, npm and packages, Linters, formatters and bundlers, A first taste of TypeScript
- 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.