Tell us what’s happening:
sport = typeOfSport.textContent;
is not working, I’ve followed the instructions.
I have tried the Read-Search-Ask method
I have searched for similar questions that have already been answered on the forum
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
sport = typeOfSport.textContent;
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:141.0) Gecko/20100101 Firefox/141.0
Challenge Information:
Learn Modern JavaScript Methods by Building Football Team Cards - Step 18