I understand the difference between:
andCode:function foo() { /* more here */}; var x = foo;
The former assigns x the function foo and the latter assigns x the result of invoking foo(). But I don't understand how this interacts with new; I've seen "var o = new Object;" and "var o = new Object();"? Is that the same distinction?Code:function foo() { /* more here */}; var x = foo();





Bookmarks