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

  • (A) store()
  • (B) module()
  • (C) log()
  • (D) require()
πŸ’¬ Discuss
βœ… Correct Answer: (D) require()
Explanation: Use require() instead of load(). It loads and executes (only once) the named module, returning an object that contains its exported symbols.
Explanation by: Mr. Dubey
Use require() instead of load(). It loads and executes (only once) the named module, returning an object that contains its exported symbols.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
176
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
85%
Success Rate