Promises
Last Updated: June 5, 2024
Promises in JavaScript
JavaScript is a single-threaded language. We want a way to have code execute without blocking the thread. So how do we solve this problem?
Callbacks
Callbacks were the first solution to solve this problem. Callback Hell is a pattern that arose and started creating code that became harder to manange.