Learn Courses My Dashboard

Mongo Parse Error- Invalid Connection String- Notes App Tutorial

Hello!
I am really new to building apps, so please excuse my ignorance. Working on the Notes App tutorial with Ali, which is great. Having an issue with testing the server in terminal window with node server.js
I get this error below;

me@Ryans-MBP Server for Note App % node server.js
Server is running!
Failed to connect MongoParseError: Invalid connection string
(node:15339) UnhandledPromiseRejectionWarning: MongoParseError: Invalid connection string
at parseConnectionString (/Users/me/Desktop/Server for Note

Here is the code. The commented out area below this is what I had originally from the tutorial. Any advice would be much appreciated.
mongoose.connect(‘mongoDB://localhost/newDB’, { useNewUrlParser: true , useUnifiedTopology: true , useCreateIndex: true});
const db = mongoose.connection;
db.on(‘error’, console.error.bind(console,‘connection error:’));
db.once(‘open’,function(){
console.log(“Connected to DB!”)
});
//mongoose.connection.once(“open”, () => {
// console.log(“Connected to DB!”)
//}).on(“error”, (error) => {
// console.log("Failed to connect " + error)
//})

does your newDB exist?