{{ message }}
What is a callback function in JavaScript? #16
Unanswered
ajay-dhangar
asked this question in
Q&A
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A callback function in JavaScript is a function that is passed as an argument to another function, and is executed when the parent function is called. Callback functions are often used in asynchronous programming, where you need to wait for a response before continuing with the code.
Example:
Beta Was this translation helpful? Give feedback.
All reactions