foo = new Foo(); // this one I use all the time
vs
foo = new Foo; // I don't understand what this one does
I've seen some code recently using new Array
with now ()
. Didn't know you could do that. What is the difference and when would I use an un-executed new object?