adspace


What is error-first callback?

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


Please Help Members By Posting Answers For Below Questions

How we can read a file in node js?

571


Is node js losing popularity?

590