Question: From the MongoDB shell, how do you execute a JavaScript file named list.js?

  1. node 'list.js'
  2. exec('list.js)
  3. run('list.js)
  4. load('list.js)

Answer: The correct answer of the above question is Option D:load('list.js)