Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f9f77a1

Browse files
Highlighting opening braces for IIFEs
1 parent 6989312 commit f9f77a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎1-js/06-advanced-functions/04-var/article.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,11 @@ There exist other ways besides parentheses to tell JavaScript that we mean a Fun
256256
```js run
257257
// Ways to create IIFE
258258

259-
(function() {
259+
*!*(*/!*function() {
260260
alert("Parentheses around the function");
261261
}*!*)*/!*();
262262

263-
(function() {
263+
*!*(*/!*function() {
264264
alert("Parentheses around the whole thing");
265265
}()*!*)*/!*;
266266

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /