en.javascript.info/1-js
Samuel Braun 1b87b89f2b
Omitting parentheses after new
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 }
})();
```
2022-09-25 14:59:06 +02:00
..
01-getting-started Correct the English and made minor improvements 2022-08-09 00:11:23 +02:00
02-first-steps closes #3168 2022-09-20 13:52:15 +02:00
03-code-quality Update article.md 2022-07-18 16:13:43 -07:00
04-object-basics Omitting parentheses after new 2022-09-25 14:59:06 +02:00
05-data-types minor fixes 2022-09-24 13:46:33 +02:00
06-advanced-functions Additional info on tail-recursion definition 2022-07-13 08:21:23 -04:00
07-object-properties Correct mis-use of "it's" 2022-04-13 11:44:21 +01:00
08-prototypes minor fixes 2022-07-06 06:54:03 +02:00
09-classes closes #3158 2022-08-27 18:13:50 +03:00
10-error-handling themable pictures 2021-12-12 22:53:17 +03:00
11-async Added a missing comma 2022-08-23 12:21:03 +01:00
12-generators-iterators Fix typo 2022-08-30 06:49:31 +00:00
13-modules Fix tense 2022-08-22 19:41:41 +01:00
99-js-misc fix markdown syntax 2022-09-21 10:15:47 +08:00
index.md Update index.md 2017-06-03 10:26:08 +02:00