Javascript – MongoClient connect callback does not work
I am trying to follow a course on MongoDB and I have problems running the following code that should allow me to connect to mongoDB. I have two modules: mongoConnect.js import { MongoClient} from 'mongodb'; import {EventEmitter} from 'events'; const…