What is an error-first callback?



What is an error-first callback?..

Answer / Pramod Kumar Saxena

An error-first callback is a callback pattern in Node.js where the first argument passed to the callback function indicates an error (if any), followed by regular return values. If there's no error, the first argument will be null or undefined.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Node.js Interview Questions

How we can read a file in node js?

0 Answers  


What is a callback?

1 Answers  


What is the revealing module pattern?

1 Answers  


What is process.nextTick()

1 Answers  


What is the purpose of cleartimeout function?

1 Answers  


How will you get information about a file using node?

1 Answers  


Can we use node.js for frontend?

1 Answers  


Why is npm used?

1 Answers  


What are the two arguments that async.queue takes?

1 Answers  


How To Update A Dependency Using Npm?

1 Answers  


How node.js overcomes the problem of blocking of i/o operations?

1 Answers  


Which is better node js or python?

1 Answers  


Categories