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 }
})();
```
|
||
|---|---|---|
| .. | ||
| 1-two-functions-one-object | ||
| 2-calculator-constructor | ||
| 3-accumulator | ||
| article.md | ||