From 602dd449411ad348d689bf5d0b32a411c99b1acf Mon Sep 17 00:00:00 2001 From: Rares Matei Date: Sat, 18 Feb 2017 17:05:38 +0000 Subject: [PATCH] Add missing semicolon at the end of example statement --- .../object-oriented-programming.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/02-javascript-algorithms-and-data-structures/object-oriented-programming.json b/challenges/02-javascript-algorithms-and-data-structures/object-oriented-programming.json index 07a7cf02c44..7f1cad35fc3 100644 --- a/challenges/02-javascript-algorithms-and-data-structures/object-oriented-programming.json +++ b/challenges/02-javascript-algorithms-and-data-structures/object-oriented-programming.json @@ -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:", - "
(function () {
  console.log(\"Chirp, chirp!\")
})(); // this is an anonymous function expression that executes right away
// Outputs \"Chirp, chirp!\" immediately
", + "
(function () {
  console.log(\"Chirp, chirp!\");
})(); // this is an anonymous function expression that executes right away
// Outputs \"Chirp, chirp!\" immediately
", "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 immediately invoked function expression or IIFE.", "
", "Rewrite the function makeNest and remove its call so instead it's an anonymous immediately invoked function expression (IIFE)."