Vidyalelo
JavaScript · Q24

Server

Programming · JavaScript · question 24

Q24

What is the alternative command used in Node for load()?

A.
store()
B.
module()
C.
log()
D.
require()
Answer

Answer: 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.