File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@ classes until you find yourself needing larger and more complex objects.
14111411
```javascript
14121412
const Animal = function(age) {
14131413
if (!(this instanceof Animal)) {
1414-
throw new Error("Instantiate Animal with `new`");
1414+
throw new Error('Instantiate Animal with `new`');
14151415
}
14161416

14171417
this.age = age;
@@ -1421,7 +1421,7 @@ Animal..move = function() {};
14211421

14221422
const Mammal = function(age, furColor) {
14231423
if (!(this instanceof Mammal)) {
1424-
throw new Error("Instantiate Mammal with `new`");
1424+
throw new Error('Instantiate Mammal with `new`');
14251425
}
14261426

14271427
Animal.call(this, age);
@@ -1434,7 +1434,7 @@ Mammal..liveBirth = function() {};
14341434

14351435
const Human = function(age, furColor, languageSpoken) {
14361436
if (!(this instanceof Human)) {
1437-
throw new Error("Instantiate Human with `new`");
1437+
throw new Error('Instantiate Human with `new`');
14381438
}
14391439

14401440
Mammal.call(this, age, furColor);

0 commit comments

Comments
 (0)