Highlighting opening braces for IIFEs

This commit is contained in:
VAMSI DEVALLA 2021-10-30 04:21:39 -04:00 committed by GitHub
parent 6989312841
commit f9f77a1b80
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
// Ways to create IIFE
(function() {
*!*(*/!*function() {
alert("Parentheses around the function");
}*!*)*/!*();
(function() {
*!*(*/!*function() {
alert("Parentheses around the whole thing");
}()*!*)*/!*;