What is error-first callback?



What is error-first callback?..

Answer / Sumit Rawat

{n 'answer': 'n An error-first callback is a style used in Node.js for asynchronous functions to ensure that any errors are immediately returned, rather than being thrown or ignored.n The callback function accepts two arguments: an error object (if any) and the result data (when no error).n '}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Node.js Interview Questions

How to install a node module locally and globally? How to add them into package.json?

1 Answers  


What is the use of the underscore variable in repl?

1 Answers  


How do you read a file using node.js?

1 Answers  


What is the use of Timers is Node.js?

1 Answers  


Are browsers single threaded?

1 Answers  


What is NPM?

1 Answers  


What are Global objects in Node.js?

1 Answers  


Why is node popular?

1 Answers  


How will you truncate a file using node?

1 Answers  


What is the timing features of node.js? Explain some timers modules?

1 Answers  


What is Node.js?

1 Answers  


How to create TCP Server and TCP Client in node.js?

1 Answers  


Categories