Learn Modern JavaScript Methods by Building Football Team Cards - Step 9

Tell us what’s happening:

This is my code:

const myFavoriteFootballTeam = {
players:
}

I am not sure where I am going wrong. Is someone able to tell where to spot the error and change my code accordingly? Thanking you.

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

  headCoach: {
    coachName: "Carlos Bilardo",
    matches: 7,
  },

const myFavoriteFootballTeam = {
  players: []
}

// User Editable Region

Your browser information:

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

Challenge Information:

Learn Modern JavaScript Methods by Building Football Team Cards - Step 9

Hi there!

You need to add only a players property with the value an empty array. Instead you created an object within the object with property and value. Reset the challenge step and try again.

Thanks it worked. Appreciate it…

Your welcome. Happy Coding.