What is MongoDB?

MongoDB is a document database. This means that we store data as documents, which are similar to JavaScript objects. Here below are a few sample JS objects:

  var a = {age: 25}; 
  var n = {name: 'Ed', languages: ['c', 'ruby', 'js']}; 
  var student = {name: 'Jim', scores: [75, 99, 87.2]};