Callbacks in JavaScript: Why They Exist
Introduction
JavaScript is a single-threaded language, which means it can execute only one task at a time.
But in real-world applications, we often deal with tasks like:
API calls
Timers
File opera
ankitkrsinghcallback.hashnode.dev3 min read