title: What does mongodb is not a function mean?
body: <p>I'm new to programming, I'm trying to follow a web developemnt course when connecting to database I created I get the error &quot;mongodb.connect is not a function&quot;.</p>
  <p>I try to connect to the database using the following code.</p>
  <pre><code>        let mongodb = require('mongodb');
          let db
          let connectionString = '';
          mongodb.connect(connectionString,{useNewUrlParser: true, useUnifiedTopology: 
          true},function(err, client){
          db = client.db();
  </code></pre>