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

Tell us what’s happening:

I tried putting it as a singular string and that did not go through, then I thought maybe an array might work and here we are…

Your code so far

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

/* file: styles.css */

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

const myFavoriteFootballTeam = {
  team = ["Argentina"];
};

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

Challenge Information:

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

Hi there!
That’s not the correct way to add a key/value pair within the object. Also the instructions aren’t asked to add the string within an array.

First, the array is totally wrong, haha. Go back to the string, and then take a look at how you’re setting team. Are you sure it should be an equals sign? :stuck_out_tongue:

1 Like

Hey! Try this:

//example:
{
 key : "value",  //case string
}

like this?

const myFavoriteFootballTeam = {
  team : "Argentina";
};

Remove the semicolon

1 Like

Within objects, items are separated by commas ( , ) and not semicolons ( ; )

Thank you for your help