JavaScript Async
1️ What is a Callback?
A callback is a function passed as an argument to another function. It runs after some task is completed.
We use callbacks mainly for:
API calls
Reading files
Timers
Databas
javascriptasync35184.hashnode.dev6 min read