# Learn Modern JavaScript Methods by Building Football Team Cards - Step 29

**URL:** <https://forum.freecodecamp.org/t/learn-modern-javascript-methods-by-building-football-team-cards-step-29/673805>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [February 20, 2024, 1:44pm UTC](https://forum.freecodecamp.org/t/learn-modern-javascript-methods-by-building-football-team-cards-step-29/673805 "2024-02-20T13:44:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![coloradoz99](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@coloradoz99](https://forum.freecodecamp.org/u/coloradoz99)\
**Post date:** [February 20, 2024, 1:44pm UTC](https://forum.freecodecamp.org/t/learn-modern-javascript-methods-by-building-football-team-cards-step-29/673805/1 "2024-02-20T13:44:38Z")

</div>

### Tell us what’s happening:

Step 29 auto coder is saying this is wrong, why ?

### Your code so far

```auto
  playerCards.innerHTML += arr.map(
    ({ name, position, number, isCaptain, nickname }) => {
         `<div class="player-card">
      <h2>
      ${isCaptain ? "(Captain)" : ""}
      ${name}</h2>
      </div>`;
    }
  );

```

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

````plaintext
Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

````

### Your browser information:

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36`

### Challenge Information:

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

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-modern-javascript-methods-by-building-football-team-cards/step-29)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [February 20, 2024, 2:18pm UTC](https://forum.freecodecamp.org/t/learn-modern-javascript-methods-by-building-football-team-cards-step-29/673805/2 "2024-02-20T14:18:06Z")

</div>

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (`</>`) to add backticks around text.

 ![Pre-formatted-text](https://global.discourse-cdn.com/freecodecamp/original/3X/1/b/1b18854f1059217f29370444396145cc3a0cd8ae.gif)

See [this post](https://forum.freecodecamp.org/t/forum-code-formatting/25574) to find the backtick on your keyboard.  
**Note:** Backticks (`) are not single quotes (').

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [February 20, 2024, 2:20pm UTC](https://forum.freecodecamp.org/t/learn-modern-javascript-methods-by-building-football-team-cards-step-29/673805/3 "2024-02-20T14:20:12Z")

</div>

The name should be before the ‘(Captain)’ identification  
for example `Robert Ross (Captain)`

---

<div class="post-metadata">

**Author:** ![coloradoz99](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@coloradoz99](https://forum.freecodecamp.org/u/coloradoz99)\
**Post date:** [February 20, 2024, 8:58pm UTC](https://forum.freecodecamp.org/t/learn-modern-javascript-methods-by-building-football-team-cards-step-29/673805/4 "2024-02-20T20:58:49Z")

</div>

Thanks for your reply , When I added code in the back ticks previously I got scolded. Do you have a video about how to do this?

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [February 21, 2024, 8:44am UTC](https://forum.freecodecamp.org/t/learn-modern-javascript-methods-by-building-football-team-cards-step-29/673805/5 "2024-02-21T08:44:09Z")

</div>

I have the gif posted before

You can use this general pattern:

> ```  
> Code here  
> ```

---

<div class="post-metadata">

**Author:** ![coloradoz99](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@coloradoz99](https://forum.freecodecamp.org/u/coloradoz99)\
**Post date:** [February 21, 2024, 1:22pm UTC](https://forum.freecodecamp.org/t/learn-modern-javascript-methods-by-building-football-team-cards-step-29/673805/6 "2024-02-21T13:22:07Z")

</div>

So I just created a new post on step 40 using back ticks still getting warning saying I exceeded max length even though it is only 3 lines of code.  
Not seeing a gif…

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [February 21, 2024, 7:00pm UTC](https://forum.freecodecamp.org/t/learn-modern-javascript-methods-by-building-football-team-cards-step-29/673805/7 "2024-02-21T19:00:15Z")

</div>

> [@ILM](#):
>
> You can also use the “preformatted text” tool in the editor (`</>`) to add backticks around text.
> 
> ![Pre-formatted-text](https://global.discourse-cdn.com/freecodecamp/original/3X/1/b/1b18854f1059217f29370444396145cc3a0cd8ae.gif)
> 
> See [this post](https://forum.freecodecamp.org/t/forum-code-formatting/25574) to find the backtick on your keyboard.

the gif in my previous post

> [@ILM](#):
>
> You can also use the “preformatted text” tool in the editor (`</>`) to add backticks around text.
> 
> ![Pre-formatted-text](https://global.discourse-cdn.com/freecodecamp/original/3X/1/b/1b18854f1059217f29370444396145cc3a0cd8ae.gif)
> 
> See [this post](https://forum.freecodecamp.org/t/forum-code-formatting/25574) to find the backtick on your keyboard.

> [@coloradoz99](#):
>
> I exceeded max length even though it is only 3 lines of code.

how are you getting this warning?  
Do you mean the one in the template? that’s not you exceeding the length, that’s the template telling you it can’t get all the code from the challenge, and that you need to write the code yourselc

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [August 22, 2024, 7:01am UTC](https://forum.freecodecamp.org/t/learn-modern-javascript-methods-by-building-football-team-cards-step-29/673805/8 "2024-08-22T07:01:08Z")

</div>

Closed on August 22, 2024, 7:01am UTC

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