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

Tell us what’s happening:

Not much is documented on this question in the forum, but they talk about a literal empty object. Could you clarify further

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

Challenge Information:

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

you are writing an object right now, right?
how do you write an object that does not have any key-value pairs, no properties, is empty?

how do you do that. I tried leaving everything empty as thus-

headCoach:  ,

but that did not seem to work…

that’s not an object tho
what are the important symbols in writing an object?

{} are the important symbols in writing an object

yes! so an object where you do not add key-value pairs, so an empty object, how do you write that?

headCoach: {},

and what happens if you add that to the challenge code?

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

};

that is not an answer to “what happens”

The headcoach property has an empty object?

and does it pass the tests?

yes it passes the test