Skip to content

Commit 424214f

Browse files
committed
Remove comma before "that".
Add commas for introductory statements.
1 parent d678b9b commit 424214f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/en/function/general.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ This example assigns the unnamed and *anonymous* function to the variable `foo`.
2525
foo(); // this raises a TypeError
2626
var foo = function() {};
2727

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

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

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

0 commit comments

Comments
 (0)