Skip to content

Commit e524050

Browse files
authored
Merge pull request learn-co-curriculum#5 from learn-co-curriculum/lizbur10_patch_1
instantly -> immediately
2 parents d8f224c + 674dabc commit e524050

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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
211211
in, default to `"go to the office"`. Run `learn` to verify you've gotten this
212212
set 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

216216
Another 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

219219
As a thought experiment, consider what happens here:
220220

@@ -226,7 +226,7 @@ We recognize the first `()` as the grouping operator that tells the JavaScript
226226
engine to interpret the contents as a value — in this case, a function
227227
expression. What this means is that, in the IIFE statement, the value returned
228228
by the first set of parentheses is an anonymous function, which can be invoked
229-
(instantly).
229+
(immediately).
230230

231231
The second `()` are the `()` of function invocation. When we put them
232232
immediately after the first set of parentheses, we're invoking the function that
@@ -396,7 +396,7 @@ const array = (
396396
Note that the value on the right of the `=` in the first line is a function
397397
expression. That function takes a single argument and returns an array that
398398
contains 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`
400400
variable.
401401

402402
Go ahead and copy the code above into your browser console and take a look at the

0 commit comments

Comments
 (0)