Skip to content

Commit 06a891e

Browse files
committed
Fix typo in chapter 6
1 parent ddad254 commit 06a891e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

06_object.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ This function cannot be called normally. Constructors, in JavaScript, are called
220220
let killerRabbit = new Rabbit("killer");
221221
```
222222

223-
In fact, `class` was only introduce in the 2015 edition of JavaScript. Any function can be used as a constructor, and before 2015 the way to define a class was to write a regular function and then manipulate its `prototype` property.
223+
In fact, `class` was only introduced in the 2015 edition of JavaScript. Any function can be used as a constructor, and before 2015 the way to define a class was to write a regular function and then manipulate its `prototype` property.
224224

225225
```
226226
function ArchaicRabbit(type) {

0 commit comments

Comments
 (0)