A

Admin • 828.03K Points
Coach

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

  • (A) store()
  • (B) module()
  • (C) log()
  • (D) require()
  • Correct Answer - Option(D)
  • Views: 8
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
Use require() instead of load(). It loads and executes (only once) the named module, returning an object that contains its exported symbols.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.