Async JavaScript
Dec 1, 2025 · 4 min read · Callbacks A callback is simply a function passed as an argument to another function.It is used when you want one function to run only after another has finished. Why do we need callbacks? JavaScript can do only one thing at a time. So if a task takes...
Join discussion

