Merge pull request #13427 from rarmatei/fix/missing-semicolon

Add missing semicolon at the end of example section statement
pull/18182/head
Samuel Plumppu 2017-02-18 19:18:30 +01:00 committed by GitHub
commit 0326d46144
1 changed files with 1 additions and 1 deletions

View File

@ -985,7 +985,7 @@
"title": "Understand the Immediately Invoked Function Expression (IIFE)",
"description": [
"A common pattern in JavaScript is to execute a function as soon as it is declared:",
"<blockquote>(function () {<br>&nbsp;&nbsp;console.log(\"Chirp, chirp!\")<br>})(); // this is an anonymous function expression that executes right away<br>// Outputs \"Chirp, chirp!\" immediately</blockquote>",
"<blockquote>(function () {<br>&nbsp;&nbsp;console.log(\"Chirp, chirp!\");<br>})(); // this is an anonymous function expression that executes right away<br>// Outputs \"Chirp, chirp!\" immediately</blockquote>",
"Note that the function has no name and is not stored in a variable. The two parentheses () at the end of the function expression cause it to be immediately executed or invoked. This pattern is known as an <code>immediately invoked function expression</code> or <code>IIFE</code>.",
"<hr>",
"Rewrite the function <code>makeNest</code> and remove its call so instead it's an anonymous <code>immediately invoked function expression</code> (<code>IIFE</code>)."