Merge pull request #2767 from VamsiDevalla/patch-1

Highlighting opening braces for IIFEs
This commit is contained in:
Ilya Kantor 2021-12-12 22:43:53 +03:00 committed by GitHub
commit 3a34345090
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -256,11 +256,11 @@ There exist other ways besides parentheses to tell JavaScript that we mean a Fun
```js run ```js run
// Ways to create IIFE // Ways to create IIFE
(function() { *!*(*/!*function() {
alert("Parentheses around the function"); alert("Parentheses around the function");
}*!*)*/!*(); }*!*)*/!*();
(function() { *!*(*/!*function() {
alert("Parentheses around the whole thing"); alert("Parentheses around the whole thing");
}()*!*)*/!*; }()*!*)*/!*;