File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
## The Prototype
2
2
3
- JavaScript does not feature a classical inheritance model, instead it uses a
3
+ JavaScript does not feature a classical inheritance model; instead, it uses a
4
4
* prototypal* one.
5
5
6
6
While this is often considered to be one of JavaScript's weaknesses, the
7
7
prototypal inheritance model is in fact more powerful than the classic model.
8
- It is for example fairly trivial to build a classic model on top of it, while the
8
+ It is, for example, fairly trivial to build a classic model on top of it, while the
9
9
other way around is a far more difficult task.
10
10
11
11
Due to the fact that JavaScript is basically the only widely used language that
@@ -71,7 +71,7 @@ hasn't found the specified property, it will return the value
71
71
### The Prototype Property
72
72
73
73
While the prototype property is used by the language to build the prototype
74
- chains, it is still possible to assign ** any** given value to it. Although
74
+ chains, it is still possible to assign ** any** given value to it. However,
75
75
primitives will simply get ignored when assigned as a prototype.
76
76
77
77
function Foo() {}
You can’t perform that action at this time.
0 commit comments