Skip to content

Commit 00821bb

Browse files
committed
2 parents d04c1ea + c9e3df3 commit 00821bb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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

doc/en/object/forinloop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ this is done by using the [`hasOwnProperty`](#object.hasownproperty) method of
3232
}
3333
}
3434

35-
This version is the only correct one to use. Due to the use of `hasOwnPropery` it
35+
This version is the only correct one to use. Due to the use of `hasOwnProperty` it
3636
will **only** print out `moo`. When `hasOwnProperty` is left out, the code is
3737
prone to errors in cases where the native prototypes - e.g. `Object.prototype` -
3838
have been extended.

0 commit comments

Comments
 (0)