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

Tell us what’s happening:

Same again what’s missing here? provide examples of solutions as usual, thanks?

Your code so far

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

/* file: styles.css */

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

const sport = [];


// 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 13

You have declared a variable sport and assign it an empty array.

You need to access the key called sport from the myFavoriteFootballTeam.

  • You have an myFavoriteFootballTeam object.

  • You are asked to assign the value of the sport property on that object to a variable named sport

Same example as before:

const user = {
  name: "John",
  fullName: "John Doe",
  age: 42,
  email: "john@example.com",
  someData: [{prop: value}]
};

const name = users.name;

Edit: it should just be an object, not an array with an object. I was a bit too quick to just copy/paste the old example.