JS - Async Programming

Async programming is used when code needs to wait for something without blocking the whole program.

Core Notes

Progression

LevelPatternMain idea
1callbackspass a function to run later
2promisesrepresent a future value
3async/awaitwrite promise-based code like synchronous code
4error handlinghandle failed async work cleanly