From 07550ef0ee5f8f562b62d54942f18b6a8c56c3c3 Mon Sep 17 00:00:00 2001 From: 11un Date: Fri, 1 Feb 2019 10:56:25 -0800 Subject: [PATCH] change wording: "brackets" to "parentheses" --- 1-js/06-advanced-functions/03-closure/article.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/1-js/06-advanced-functions/03-closure/article.md b/1-js/06-advanced-functions/03-closure/article.md index e6c95de0..2f10e7dc 100644 --- a/1-js/06-advanced-functions/03-closure/article.md +++ b/1-js/06-advanced-functions/03-closure/article.md @@ -491,7 +491,7 @@ function() { // <-- JavaScript cannot find function name, meets ( and gives erro We can say "okay, let it be so Function Declaration, let's add a name", but it won't work. JavaScript does not allow Function Declarations to be called immediately: ```js run -// syntax error because of brackets below +// syntax error because of parentheses below function go() { }(); // <-- can't call Function Declaration immediately @@ -505,11 +505,11 @@ There are other ways to tell JavaScript that we mean Function Expression: // Ways to create IIFE (function() { - alert("Brackets around the function"); + alert("Parentheses around the function"); }*!*)*/!*(); (function() { - alert("Brackets around the whole thing"); + alert("Parentheses around the whole thing"); }()*!*)*/!*; *!*!*/!*function() {