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

Tell us what’s happening:

The code:

const myFavoriteFootballTeam = {
  team: "Argentina",
  sport: "Football",
  year: 1986,
  isWorldCupWinner: true,
}

The error:

Sorry, your code does not pass. You’re getting there.
You should assign the value of the sport key from the myFavoriteFootballTeam object to the sport variable.

Your code so far

I have tried both of these lines, yet still I’m getting an error

const sport = myFavoriteFootballTeam.sport;
const { sport } = myFavoriteFootballTeam;

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36

Challenge Information:

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

Welcome to the forum @akhil

The first code passes.
Reset the step and try again. If that doesn’t work, refresh the page, disable dark mode, disable ad blockers. Or, use another browser.
If the above steps do not work, you may need to restart the computer.

Happy coding