Skip to content

Commit

Permalink
tweaking section name in chapter 3
Browse files Browse the repository at this point in the history
  • Loading branch information
getify committed Feb 9, 2014
1 parent 8ad0990 commit 0f38323
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scope & closures/ch3.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ var a = 2;

The `def` function expression is defined in the second-half of the snippet, and then passed as a parameter (also called `def`) to the `IIFE` function defined in the first half of the snippet. Finally, the parameter `def` (the function) is invoked, passing `window` in as the `global` parameter.

## Block Scope
## Blocks As Scopes

While functions are the most common unit of scope, and certainly the most wide-spread of the design approaches in the majority of JS in circulation, other units of scope are possible, and the usage of these other scope units can lead to even better, cleaner to maintain code.

Expand Down
2 changes: 1 addition & 1 deletion scope & closures/toc.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Scope From Functions
* Hiding In Plain Scope
* Functions As Scopes
* Block Scope
* Blocks As Scopes
* Chapter 4: Hoisting
* Chicken Or The Egg?
* The Compiler Strikes Again
Expand Down

0 comments on commit 0f38323

Please sign in to comment.