Callback Functions

  1. It is a function that is passed as an argument to another function.
  2. Callback ensures that the function will not execute before the task is completed but execute after the task has been completed.
  3. 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'

Post a Comment

Previous Post Next Post