Constructor call without parentheses

Is there a difference between

var obj1 = new Constructor; 

and

 var obj2 = new Constructor(); 

considering that a Constructor is a design function?

+4
source share
1 answer

According to MDN docs :

[...] "new foo" is equivalent to "new foo ()", that is, if there is no argument list, "foo" is called without arguments.

+6
source

All Articles