FCC: JS Algorithms and Data Structures - Building Football Team Cards

Step 9 Below the headCoach property, create a new property with a key named players with the value of an empty array.

ng Football Team Cards
Step 9
Below the headCoach property, create a new property with a key named players with the value of an empty array.

const myFavoriteFootballTeam = {
team: “Argentina”,
sport: “Football”,
year: 1986,
isWorldCupWinner: true,
headCoach: {
coachName: “Carlos Bilardo”,
matches: 7
},

const myFavoriteFootballTeam = {
players:
}

it still shows not correct.

headCoach: {
coachName: “Carlos Bilardo”,
matches: 7
},

const myFavoriteFootballTeam = {
players:
};

it still shows uncorrect.

Hi

You don’t create myFavouriteFootballTeams object again. You add to the existing object.

Look at the structure of the object. It is all contained within {}. Within the object there are:

key : value of key (together called a property).

The value of the key could be a line of code, an array, an object, anything.

You are asked to create a new property within the existing object under headCoach. Look at how t he comma is used to separate the properties.

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