JS new object VS new object ()

Possible duplicate:
new MyObject (); vs new MyObject;

What's the difference between

new Object 

and

 new Object() 

Is there a reason to ever leave parentheses or is this what people sometimes do?

+4
source share
1 answer

No difference

+4
source

Source: https://habr.com/ru/post/1384781/


All Articles