Why do we need promises in node js?



Why do we need promises in node js?..

Answer / Kamal Kumawat

Promises in Node.js are important because they simplify asynchronous code by providing a cleaner way to handle callbacks, making the code easier to read and debug. They also allow for error handling using 'catch' blocks.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Node.js Interview Questions

Why to use MongoDB?

1 Answers  


Explain libuv.

1 Answers  


Where can we use node.js?

1 Answers  


Why node.js is quickly gaining attention from java programmers?

1 Answers  


Which framework is most commonly used in node.js?

1 Answers  


What are node packages and how to install/uninstall them?

1 Answers  


Is node js a web server?

1 Answers  


For what require() is used in node js?

1 Answers  


What is the purpose of node.js?

1 Answers  


How to test your code in Node.js?

1 Answers  


How to support multi-processor platforms in Node.js?

1 Answers  


What do you mean by the term i/o in node.js?

1 Answers  


Categories