- It is a function that is passed as an argument to another function.
- Callback ensures that the function will not execute before the task is completed but execute after the task has been completed.
- It helps us develop asynchronous code and keeps us safe from problems and errors.
In simple words, a function that is passed as an argument and runs after the completion of that function is the callback function.
'I Will Call Back Later'
Tags:
Concepts