var foo = Object.create(null); //complete empty
var bar = {}; //empty object
var don = function(){
//like template, need new to create an object
};
console.log(foo); //Object (no properties)
console.log(bar); //Object (__proto__)
console.log(new don); //don{} (__proto__)
I'm new in javascipt oop, I got a question about object type.
what are different and how to use those object?