adspace


What happens if we call require() method to load same module multiple times in Node.js?

Answer Posted / Udai Veer Singh

If you call 'require' to load the same module multiple times in Node.js, the module will only be loaded once. Subsequent calls will return the same object instance.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How we can read a file in node js?

568


Is node js losing popularity?

588