adspace


How do callbacks work?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Is node js losing popularity?

589


How we can read a file in node js?

568