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

Tell us what’s happening:

i dont understand this code isnt working but i have done it according to instructions

Your code so far

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

/* file: styles.css */

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

  const sport = typeOfSport.textContent;
  


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

Challenge Information:

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

In the above code you assigned typeOfSport.textContent to sport.
You need simple assignment sport to typeOfSport.textContent and don’t need to declare sport variable again.

1 Like