Object Oriented Programming: Change the Prototype to a New Object

Tell us what’s happening:

SyntaxError: unknown: Unexpected token, expected “,” (11:23)

9 | cosnole.log(“nom nom nom”);
10 | },

11 | describe: fucntion() {
| ^
12 | console.log("My name is " + this.name);
13 | }
14 | };

it shows me there is an extra bracket that I am using. What am I doing wrong here. Looked at both of the challenge hints

Your code so far


function Dog(name) {
this.name = name;
}

Dog.prototype = {
// Only change code below this line
numLegs: 2,
eat() {
  cosnole.log("nom nom nom");
},
describe: fucntion() {
  console.log("My name is " + this.name);
}
};

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36.

Challenge: Change the Prototype to a New Object

Link to the challenge:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/object-oriented-programming/change-the-prototype-to-a-new-object

Hello, baxter.

Reread your code. There are a few typos.

typo

as such it say that all the function syntax is a syntax error

other typos too, but those do not cause so visible errors