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

Tell us what’s happening:

can’t understand what to do after adding the properties

Your code so far

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

/* file: styles.css */

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

{
name: "Sergio Almirón",
    position: "forward",
    number: 1,
    isCaptain: false,
    nickname: null
};

// 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/122.0.0.0 Safari/537.36

Challenge Information:

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

Remember, you are creating this object inside of an array. Do you use semi-colons after each array item?

I can’t understand this:
The numbers for the team are organized alphabetically by last name. This differs from conventional numbering where the numbers correspond with what is on the player’s jerseys.

That note doesn’t have anything to do with the actual issue you are having.

It might help if you looked at the entire array. This is what you have coded for the players array:

players: [
{
    name: "Sergio Almirón",
    position: "forward",
    number: 1,
    isCaptain: false,
    nickname: null
};
]

Do you see a problem with that? Refer to my previous comment which points out where the error is occuring.

1 Like

Thank you so much it really helped me!

1 Like