.then(() => {
console.log(“Connection Open!!”);
})
.catch(err => {
console.log(“Connection Failed”);
console.log(err);
});
while using that it thows error syntax erroer unexpected token ‘.’
.then(() => {
console.log(“Connection Open!!”);
})
.catch(err => {
console.log(“Connection Failed”);
console.log(err);
});
while using that it thows error syntax erroer unexpected token ‘.’