Help with Create and Save a Record of a Model

I’m working on MongoDB challenges and can’t seem to pass the second challenge. Here is my code so far and it seems correct to me, but doesn’t pass the test. What am not seeing? Any help is much appreciated!

/** 2) Create a ‘Person’ Model */


let personSchema = new Schema({
  name: {type: String, required: true},
  age: Number,
  favoriteFoods: [String]
})

const Person = mongoose.model("Person", personSchema)

let createAndSavePerson = function(done) {
  let person = new Person({name: "John", age: 34, favoriteFoods: ["ramen", "broccoli"]});

  person.save(function(err, data) {
    (err ? done(err) : done(null, data))
  });
};

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.

markdown_Forums