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 @@ -1411,7 +1411,7 @@ classes until you find yourself needing larger and more complex objects.
14111411``` javascript
14121412const 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.prototype.move = function() {};
14211421
14221422const 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.prototype.liveBirth = function() {};
14341434
14351435const 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);
You can’t perform that action at this time.
0 commit comments