4 Dec 2023
Finished 2621. Sleep
What I learn:
- Promises
- setTimeout() return a timeoutID
clearTimeout(timeoutID)
- .finally() in promise
- JavaScript's Event Loop
- we can use promise chaining to avoid "callback hell" or "pyramid of doom"
- we can write asynchronous code that almost looks like synchronous code with the assistance of async and await, it is easier to understand and maintain
Top comments (0)