Nothing happens when trying to create a MongoDB database through a Node.js file
I am following W3Schools.com's 'Node.js MongoDB' tutorial. My action.js file contains the following code: var mongo = require('mongodb').MongoClient; var url = "mongodb://localhost:27017/mydb"; mongo.connect(url, function (err, db) { if (err) throw err; console.log("Database created!"); db.close(); }); When I try to run…