JavaScript Language Center


  • Can be used by clients written in JavaScript.
  • Uses JavaScript internally on the server-side for certain options, such as map/reduce.
  • Has a shell that is based on JavaScript.

node.JS and V8

See Node.js Language Center.


Changed in version 2.4: MongoDB and the mongo shell use V8 for all JavaScript execution. Previously, MongoDB used SpiderMonkey for all JavaScript execution.

The MongoDB shell extends V8. See the MongoDB shell documentation.

MongoDB Server-Side JavaScript

JavaScript may be executed in the MongoDB server processes for various functions, such as query enhancement and map/reduce processing. See Server-side Code Execution.