adspace


Explain the concept of stub in node.js.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is node js losing popularity?

589


How we can read a file in node js?

569