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

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

Take another look at the instructions. What value are we trying to change here?

sport value, but is frozen I think

But it doesn’t seem to be working

let’s look at the instructions again

you need to start displaying the team’s information on the screen

So what do we need to change? (something that goes on the screen?)
And what is that?

I solve it this way

removed


Glad you got it, please don’t add solution code to the forum

1 Like