Highlighting opening braces for IIFEs
This commit is contained in:
parent
6989312841
commit
f9f77a1b80
1 changed files with 2 additions and 2 deletions
|
@ -256,11 +256,11 @@ There exist other ways besides parentheses to tell JavaScript that we mean a Fun
|
|||
```js run
|
||||
// Ways to create IIFE
|
||||
|
||||
(function() {
|
||||
*!*(*/!*function() {
|
||||
alert("Parentheses around the function");
|
||||
}*!*)*/!*();
|
||||
|
||||
(function() {
|
||||
*!*(*/!*function() {
|
||||
alert("Parentheses around the whole thing");
|
||||
}()*!*)*/!*;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue