Async Callbacks

  • Async callbacks are called when another operation finishes
  • The first operation decides what parameters (if any) to pass
  • The JavaScript runtime manages waiting for certain operations
    • Reading files
    • Calling the network
    • Waiting for the user to do something
    • Timers

6 / 25