I'm misting something obvious here, can someone help me please

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

// Only change code below this line
class Vegettable {
constructor(name) {
  this.name = name;
}
};
// Only change code above this line

const carrot = new Vegetable('carrot');
console.log(carrot.name); // Should display 'carrot'
  **Your browser information:**

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

Challenge: Use class Syntax to Define a Constructor Function

Link to the challenge:

Hi @hansondwayne9 !

I haven’t tested your code but I noticed this spelling error.

So that is probably the issue.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.