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



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

Answer / 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

More Node.js Interview Questions

What is repl in context of node?

1 Answers  


What are the biggest drawbacks of node.js?

1 Answers  


What is the latest version of node.js available?

1 Answers  


How to decode buffers?

1 Answers  


What is http createserver?

1 Answers  


How can we secure cookies in Node.js?

1 Answers  


Is Nodejs client side or server side language?

1 Answers  


What are the advantages of template engines?

1 Answers  


Explain module.exports in node js?

1 Answers  


For node.js, why google uses v8 engine?

1 Answers  


How we can read a file in node js?

0 Answers  


How "control flow" controls the functions calls?

1 Answers  


Categories