Skip to content

Commit 5008b85

Browse files
committed
Merge pull request BonsaiDen#123 from sl4m/pull_request_01
Fixes spelling, grammar, format
2 parents 22d72aa + 80dc784 commit 5008b85

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

doc/en/array/general.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Array Iteration and Properties
22

33
Although arrays in JavaScript are objects, there are no good reasons to use
4-
the [`for in loop`](#object.forinloop) in for iteration on them. In fact, there
4+
the [`for in`](#object.forinloop) loop. In fact, there
55
are a number of good reasons **against** the use of `for in` on arrays.
66

77
> **Note:** JavaScript arrays are **not** *associative arrays*. JavaScript only

doc/en/core/delete.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ In the example above `obj.x` and `obj.y` can be deleted because they have no
5151
GLOBAL_OBJECT.a; // undefined
5252

5353
Here we use a trick to delete `a`. [`this`](#function.this) here refers
54-
to the Global object and we explicitly declare variable `a` as it's property
54+
to the Global object and we explicitly declare variable `a` as its property
5555
which allows us to delete it.
5656

57-
IE (at least 6-8) has some bugs, so code above doesn't work.
57+
IE (at least 6-8) has some bugs, so the code above doesn't work.
5858

5959
### Function arguments and built-ins
6060

doc/en/function/general.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
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
5-
an *anonymous function* as a callback to another, possibly asynchronous function.
5+
an *anonymous function* as a callback to another, possibly an asynchronous function.
66

77
### The `function` Declaration
88

doc/en/function/scopes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ has been applied.
153153
Without the knowledge about *hoisting*, the below code might seem to raise a
154154
`ReferenceError`.
155155

156-
// check whether SomeImportantThing has been initiliazed
156+
// check whether SomeImportantThing has been initialized
157157
if (!SomeImportantThing) {
158158
var SomeImportantThing = {};
159159
}
@@ -163,7 +163,7 @@ moved to the top of the *global scope*.
163163

164164
var SomeImportantThing;
165165

166-
// other code might initiliaze SomeImportantThing here, or not
166+
// other code might initialize SomeImportantThing here, or not
167167

168168
// make sure it's there
169169
if (!SomeImportantThing) {

doc/en/object/general.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ literals act as objects too.
2828
Objects in JavaScript can also be used as a [*Hashmap*][1]; they mainly consist
2929
of named properties mapping to values.
3030

31-
Using a object literal - `{}` notation - it is possible to create a
31+
Using an object literal - `{}` notation - it is possible to create a
3232
plain object. This new object [inherits](#object.prototype) from `Object.prototype` and
3333
has no [own properties](#object.hasownproperty) defined on it.
3434

@@ -42,7 +42,7 @@ has no [own properties](#object.hasownproperty) defined on it.
4242
The properties of an object can be accessed in two ways, via either the dot
4343
notation or the square bracket notation.
4444

45-
var foo = {name: 'Kitten'}
45+
var foo = {name: 'kitten'}
4646
foo.name; // kitten
4747
foo['name']; // kitten
4848

doc/en/object/hasownproperty.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ necessary to use an *external* `hasOwnProperty` in order to get correct results.
4444
// Use another Object's hasOwnProperty and call it with 'this' set to foo
4545
({}).hasOwnProperty.call(foo, 'bar'); // true
4646

47-
// It's also possible use the hasOwnProperty property from the Object property for this purpuse
47+
// It's also possible use the hasOwnProperty property from the Object property for this purpose
4848
Object.prototype.hasOwnProperty.call(obj, 'bar'); // true
4949

5050

doc/en/other/timeouts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ function that will get called by either of the timeout functions.
138138
function foo(a, b, c) {}
139139

140140
// NEVER use this
141-
setTimeout('foo(1,2, 3)', 1000)
141+
setTimeout('foo(1, 2, 3)', 1000)
142142

143143
// Instead use an anonymous function
144144
setTimeout(function() {

0 commit comments

Comments
 (0)