I've been following classical inheritance vs Prototypical inheritance but I've got a doubt.
When we create an object using
var a = {};
and
var a = new Object();
I read that new creates a 'copy' of an object (hence it's bad?) but at the same time, I read they both are the same thing here(What is the difference between `new Object()` and object literal notation?)
I'm kinda confused if someone can explain what exactly is going on.