File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1411,7 +1411,7 @@ classes until you find yourself needing larger and more complex objects.
1411
1411
``` javascript
1412
1412
const Animal = function (age ) {
1413
1413
if (! (this instanceof Animal)) {
1414
- throw new Error (" Instantiate Animal with `new`" );
1414
+ throw new Error (' Instantiate Animal with `new`' );
1415
1415
}
1416
1416
1417
1417
this .age = age;
@@ -1421,7 +1421,7 @@ Animal.prototype.move = function() {};
1421
1421
1422
1422
const Mammal = function (age , furColor ) {
1423
1423
if (! (this instanceof Mammal)) {
1424
- throw new Error (" Instantiate Mammal with `new`" );
1424
+ throw new Error (' Instantiate Mammal with `new`' );
1425
1425
}
1426
1426
1427
1427
Animal .call (this , age);
@@ -1434,7 +1434,7 @@ Mammal.prototype.liveBirth = function() {};
1434
1434
1435
1435
const Human = function (age , furColor , languageSpoken ) {
1436
1436
if (! (this instanceof Human)) {
1437
- throw new Error (" Instantiate Human with `new`" );
1437
+ throw new Error (' Instantiate Human with `new`' );
1438
1438
}
1439
1439
1440
1440
Mammal .call (this , age, furColor);
You can’t perform that action at this time.
0 commit comments