Q. What does require() do?

A
Defines a variable
B
Imports a module
C
Starts the server
D
Sends a response
Solution:

require() imports modules in Node.js.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!