What are promises in node.js?



What are promises in node.js?..

Answer / Abhishek

In Node.js, a Promise represents a value that may not be available yet but will be resolved at some point in the future. Promises help manage asynchronous operations by allowing you to write code that waits for the result without blocking other code.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Node.js Interview Questions

Why is js single threaded?

1 Answers  


What is difference between put and patch?

1 Answers  


What are the exit codes in node.js? Can you list a few exit codes?

1 Answers  


How do you get information of a file using node.js?

1 Answers  


Why we use node.js?

1 Answers  


For what require() is used in node js?

1 Answers  


Which types of network application you can build using node.js?

1 Answers  


What are Events and Event Emitters in node.js?

1 Answers  


How prevents blocking code in node.js?

1 Answers  


How to use aggregation in mongoose?

1 Answers  


Is node js asynchronous by default?

1 Answers  


Is a promise a callback?

1 Answers  


Categories