Tell us what’s happening:
Step 7
Below the team property, add four property key-value pairs.
A key named sport and a string value of “Football”.
A key named year and a number value of 1986.
A key named isWorldCupWinner and a boolean value set to true.
A new key called headCoach with a value of an empty object
my code:
const myFavoriteFootballTeam = {
team: “Argentina”,
sport: “Football”,
year: 1986
isWorldCupWinner: true
headCoach: {}
};
and it says, your code does not pass.
can someone explain this?
thanks
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
const myFavoriteFootballTeam = {
team: "Argentina",
sport: "Football",
year: 1986
isWorldCupWinner: true
headCoach: {}
};
// 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/133.0.0.0 Safari/537.36
Challenge Information:
Learn Modern JavaScript Methods by Building Football Team Cards - Step 7