Skip to content

Commit

Permalink
Merge pull request getify#663 from ncpierson/there-are
Browse files Browse the repository at this point in the history
fix grammar in "this & object prototypes" chap. 4
  • Loading branch information
getify committed Feb 15, 2016
2 parents cbd249e + cb5021a commit 47ac0b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion this & object prototypes/ch4.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ JavaScript is simpler: it does not provide a native mechanism for "multiple inhe

## Mixins

JavaScript's object mechanism does not *automatically* perform copy behavior when you "inherit" or "instantiate". Plainly, there's no "classes" in JavaScript to instantiate, only objects. And objects don't get copied to other objects, they get *linked together* (more on that in Chapter 5).
JavaScript's object mechanism does not *automatically* perform copy behavior when you "inherit" or "instantiate". Plainly, there are no "classes" in JavaScript to instantiate, only objects. And objects don't get copied to other objects, they get *linked together* (more on that in Chapter 5).

Since observed class behaviors in other languages imply copies, let's examine how JS developers **fake** the *missing* copy behavior of classes in JavaScript: mixins. We'll look at two types of "mixin": **explicit** and **implicit**.

Expand Down

0 comments on commit 47ac0b9

Please sign in to comment.