Callback are Closures?

Callback: Concept callback function are derived from functional paradigm.

A callback function is a function passed into another function as an argument, which is then invoked inside the outer function to complete some kind of routine or action.1

Closures:

A _closure _is the combination of a function and the lexical environment within which that function was declared.2

Callback operates in two ways:

  • Synchronous Callback

  • Asynchronous Callback

1. Callback Function
2. Closures

results matching ""

    No results matching ""