adspace


What is the difference between events and callbacks in node.js?

Answer Posted / Kavita

Events are asynchronous actions triggered by specific conditions within Node.js, such as 'data' or 'error'. Callbacks, on the other hand, are functions passed as arguments to higher-order functions that are executed after a specific task is completed.

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?

588


How we can read a file in node js?

567