Explain the concept of stub in node.js.
Answer / Miss.arushi Khanna
{"stub":["A stub is a placeholder function that returns a predefined value or throws an error when called.", "It can be used for testing purposes to replace real functions with simpler versions that provide expected behavior."]}
| Is This Answer Correct ? | 0 Yes | 0 No |
How to use async await with promises in node js?
What is Express in node.js?
In which language node js is written?
How to protect node js source code?
Differentiate between javascript and node.js.
What is Streams piping in node.js?
Why is node.js single-threaded?
How to create function in node js?
What is chaining in node.js?
Who has developed Node.js?
Which database is best for node js?
Does node.js have a future?