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

Tell us what’s happening:

I’m stuck on this one any examples would be helpful as usual.

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
myFavoriteFootballTeam.players = [
  ],
};

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1.1 Safari/605.1.15

Challenge Information:

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

it’s a little bit hard to tell what’s wrong with your code because you only put a little bit of it there but considering that it is inside the player array you need to make an object inside the array and that is not and object and object starts with { and ends with } and another thing that I noticed you did is the myFavoriteFootballTeam.players = [ ], line it doesn’t bellong in the code so you can just delete it, I just noticed you have the end of the object but you don’t have the start of it so that would be all I see that you did wrong! good luck! hope I helped!

Can you show me how it should look like?

*example of how it should look like?

sure so this is just an example because if I put in the whole code it will get deleted:
Players: [
{
name: “_______”,
position: “________”,
number: ________,
isCaptain: _______,
nickname: _______,

},
]

everything that I put in the example is important because if you forget to add one single parantheses or comma the code will break so be aware of that aswell

Somehow it’s not working.

  • Reset your code.

  • Add the object inside the players array.

  • Copy and paste the example code inside the object and add commas after each property.

const users = [
  {
    name: "John",
	fullName: "John Doe",
	age: 42,
	email: "john@example.com"
  }
]

Cheers for that I know where I went wrong.

Cheers please assist with new task, thanks.