Skip to content

Commit

Permalink
Remove comma before "that".
Browse files Browse the repository at this point in the history
Add commas for introductory statements.
  • Loading branch information
XP1 committed Sep 21, 2011
1 parent d678b9b commit 424214f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/en/function/general.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ This example assigns the unnamed and *anonymous* function to the variable `foo`.
foo(); // this raises a TypeError
var foo = function() {};

Due to the fact that `var` is a declaration, that hoists the variable name `foo`
Due to the fact that `var` is a declaration that hoists the variable name `foo`
before the actual execution of the code starts, `foo` is already defined when
the script gets executed.

Expand All @@ -41,8 +41,8 @@ Another special case is the assignment of named functions.
}
bar(); // ReferenceError

Here `bar` is not available in the outer scope, since the function only gets
assigned to `foo`; however, inside of `bar` it is available. This is due to
Here, `bar` is not available in the outer scope, since the function only gets
assigned to `foo`; however, inside of `bar`, it is available. This is due to
how [name resolution](#function.scopes) in JavaScript works, the name of the
function is *always* made available in the local scope of the function itself.

0 comments on commit 424214f

Please sign in to comment.