Use class Syntax to Define a Constructor Functio bug?n

Tell us what’s happening:
ok so I dont know if there is a glitch but when i post the correct answer no matter how many times i correctly write the code it gives me “vegetable is not a constructor”.

Your code so far

class vegetable {
constructor(name){ = name;

function makeClass() {
  "use strict";
  /* Alter code below this line */
class vegetable {
  constructor(name){ = name;
  /* Alter code above this line */
  return Vegetable;
const Vegetable = makeClass();
const carrot = new Vegetable('carrot');
console.log(; // => should be 'carrot'

Your browser information:

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

Link to the challenge:

There is no constructor for Vegetable because you didn’t capitalize the “V”.


face palm!! thank you lol.