title: Javscript upper case function not working
body: <p>Hi just wondering if anyone could explain this syntax error to me.
  Im mapping over and object and trying to access the values through object.keys</p>
  <pre><code> const getPokemonCard = (pokemonId) =&gt; {
      const { id, name } = pokemonData[`${pokemonId}`]
      const sprite = `https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/${pokemonId}.png`
      return (
          &lt;Grid item xs={4} key={pokemonId}&gt;
              &lt;Card&gt;
                  &lt;CardMedia
                      className={classes.cardMedia}
                      image={sprite}
                      style={{
                          width: '130px',
                          height: '130px'
                      }}
                  /&gt;
                  &lt;CardContent&gt;
                      &lt;Typography&gt;
                          {`#${id}. ${firstLetterUpperCase(name)}`}
                      &lt;/Typography&gt;
                  &lt;/CardContent&gt;
              &lt;/Card&gt;
          &lt;/Grid&gt;
      )
  }
  </code></pre>
  <p>I have figured out a solution but dont quite understand it.</p>
  <pre><code>const firstLetterUpperCase = (name) =&gt; {
  name.charAt(0).toUpperCase() + name.slice(1);
     }
  </code></pre>
  <p>gives me an error</p>
  <p>Line 19:5:  Expected an assignment or function call and instead saw an expression  no-unused-expressions</p>
  <p>Search for the keywords to learn more about each error.</p>
  <p>but when i remove the brackets it works</p>
  <pre><code>const firstLetterUpperCase = (name) =&gt; 
  name.charAt(0).toUpperCase() + name.slice(1);
  </code></pre>