Question · JavaScript and TypeScript course · Module 4: Asynchronous JavaScript

Callback Function

What is a callback in JavaScript?

Answer options

  • A function that returns a boolean value
  • A function that handles only errors
  • A function passed as an argument to another function, called after an operation completes
  • A function that calls itself

You can check the correct answer by solving this task in the CodeWorlds game.