Skip to content

Commit c9e3df3

Browse files
committed
More typo hunting, some grammatical changes
1 parent 33f794c commit c9e3df3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/en/function/general.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Function Declarations and Expressions
22

3-
Functions in JavaScript are first class objects, that means that they can be
3+
Functions in JavaScript are first class objects. That means they can be
44
passed around like any other value. One common use of this feature is to pass
55
an *anonymous function* as a callback to another, possibly asynchronous function.
66

@@ -29,7 +29,7 @@ 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

32-
But since assignments only happens at runtime, the value of `foo` will default
32+
But since assignments only happen at runtime, the value of `foo` will default
3333
to [undefined](#core.undefined) before the corresponding code is executed.
3434

3535
### Named function expression

0 commit comments

Comments
 (0)