77- Define ` function expression `
88- Define ` anonymous function `
99- Define a function using a function expression
10- - Define an IIFE: ` Instantly -Invoked Function Expression`
10+ - Define an IIFE: ` Immediately -Invoked Function Expression`
1111- Define ` function-level scope `
1212- Define ` scope chain `
1313- Define ` closure `
@@ -211,10 +211,10 @@ with the activity that's passed in as the first parameter. If nothing is passed
211211in, default to ` "go to the office" ` . Run ` learn ` to verify you've gotten this
212212set of tests passing before continuing with the lesson.
213213
214- ## Define an IIFE: Instantly -Invoked Function Expression
214+ ## Define an IIFE: Immediately -Invoked Function Expression
215215
216216Another way to invoke an anonymous function is by creating what's known as an
217- ` instantly -invoked function expression (IIFE)` .
217+ ` immediately -invoked function expression (IIFE)` .
218218
219219As a thought experiment, consider what happens here:
220220
@@ -226,7 +226,7 @@ We recognize the first `()` as the grouping operator that tells the JavaScript
226226engine to interpret the contents as a value — in this case, a function
227227expression. What this means is that, in the IIFE statement, the value returned
228228by the first set of parentheses is an anonymous function, which can be invoked
229- (instantly ).
229+ (immediately ).
230230
231231The second ` () ` are the ` () ` of function invocation. When we put them
232232immediately after the first set of parentheses, we're invoking the function that
@@ -396,7 +396,7 @@ const array = (
396396Note that the value on the right of the ` = ` in the first line is a function
397397expression. That function takes a single argument and returns an array that
398398contains two functions. The ` (2) ` after the function expression executes that
399- function (instantly ), and the two inner functions are stored in the ` array `
399+ function (immediately ), and the two inner functions are stored in the ` array `
400400variable.
401401
402402Go ahead and copy the code above into your browser console and take a look at the
0 commit comments