Javascript building a football Teams cards step 24

  playerCards.innerHTML += arr.map(() => {
arr.map (({ name, position, number, isCaptain, nickname}))
  })

this is the code which it passed the test but when I wrote it the property “name” whas overlined. I mean with a line, like if it was canceled. Why is that happend?

Hi there!

Why you add the .map() method twice in your code block?

For more assistance, post a link to the challenge step.

because the code passed the test I submited and go to the next lesson. now after you asked I realized, is not necessary to add the .map() metthod again IN the .map() method. Thank you for the observation.
but the question whas, why the property name appeared like cancelled when I wrote it.

actually, after I read the code a couple of times.
It does look a bit odd, does’t it… :laughing: :thinking: :face_with_hand_over_mouth:

I was trying to make the overline appear writing code, but it appears only if I copy and paste yours, it’s weird

I thought it was something to do with a repetition of the property. but I also though it was odd. have You any idea why that happend?
I understand is not very easy readable and looks messy.
Is my code valid?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.