How do callbacks work?



How do callbacks work?..

Answer / Monu

Callbacks are functions passed as arguments to other functions to be executed after the main function has completed. They allow for asynchronous execution, meaning the main function can continue running while the callback function is being executed elsewhere. Node.js heavily relies on callbacks for handling I/O operations.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Node.js Interview Questions

Why we have to keep separate express app and server?

1 Answers  


Does node run on windows?

1 Answers  


Why do we need server side rendering?

1 Answers  


What is the purpose of __dirname variable?

1 Answers  


Explain the working of the control flow function.

1 Answers  


What is express.js?

1 Answers  


Explain 'Event Emitter' in Node.JS?

1 Answers  


List down the tasks which should be done asynchronously using the event loop?

1 Answers  


What is the revealing module pattern?

1 Answers  


What is node js used for?

1 Answers  


How to check a file/directory existence in node.js?

1 Answers  


Is node js better than java?

1 Answers  


Categories