If you want to create an object that is unique and is the only instance what's best to use:
var obj = new function() {
this.x = 200;
this.y = 100;
};
or
var obj = {
x: 200,
y: 100
};
AFAIK the benefits of new is that you can do things such as:
var obj = new function() {
this.x = 300;
this.y = x - 50
};
which you can't with:
var obj = {
x: 300,
y: x - 50 // undefined
}
???