![]() Parentheses can be omitted even if the constructor function has arguments: ```js new function(test) { return { test } } // Works the same as new (function(test) { return { test } })(); ``` |
||
---|---|---|
.. | ||
01-object | ||
02-object-copy | ||
03-garbage-collection | ||
04-object-methods | ||
06-constructor-new | ||
07-optional-chaining | ||
08-symbol | ||
09-object-toprimitive | ||
index.md |