Q24
What is the alternative command used in Node for load()?
A.
store()
B.
module()
C.
log()
D.
require()
AnswerAnswer: Option D
Solution
Answer: Option D
Solution:
Use require() instead of load(). It loads and executes (only once) the named module, returning an object that contains its exported symbols.