Fix typo on OOP challenge (#18616)
* Fix type on OOP as requested on issue #18091 fix: numLegs: 2 to numLegs: 4 on challenge: Remember to Set the Constructor Property when Changing the Prototype * Update remember-to-set-the-constructor-property-when-changing-the-prototype.english.md
This commit is contained in:
@ -42,7 +42,7 @@ function Dog(name) {
|
|||||||
// Modify the code below this line
|
// Modify the code below this line
|
||||||
Dog.prototype = {
|
Dog.prototype = {
|
||||||
|
|
||||||
numLegs: 2,
|
numLegs: 4,
|
||||||
eat: function() {
|
eat: function() {
|
||||||
console.log("nom nom nom");
|
console.log("nom nom nom");
|
||||||
},
|
},
|
||||||
@ -68,7 +68,7 @@ function Dog(name) {
|
|||||||
}
|
}
|
||||||
Dog.prototype = {
|
Dog.prototype = {
|
||||||
constructor: Dog,
|
constructor: Dog,
|
||||||
numLegs: 2,
|
numLegs: 4,
|
||||||
eat: function() {
|
eat: function() {
|
||||||
console.log("nom nom nom");
|
console.log("nom nom nom");
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user