Understanding Asynchronous Javascript: Callbacks, Promises, Event loop, and Synchronous vs Asynchronous
Callbacks
Callback is a function passed as an argument to the another function.
Callback function can run after another function has finished.
Callbacks are the simplest way to handle asynchronous tasks but can become messy with nesting.
Example...
techinical-blog-on-javascript.hashnode.dev4 min read