Possible duplicate:
new MyClass (); vs new MyClass;
Please see comments below.
When creating a new instance of the object, what is the difference between A and B below
A using brackets
var foo = new Bar();
B without brackets
var foo = new Bar;
I use backbone.js where many examples do not use parentheses. Also, what is the correct terminology for calling () ? Run?
source share