JavaScript Problem: Capitalize the First Letter of Multiple Strings

In this JavaScript problem we look at processing multiple names in order to capitalize the first letter of each name. It is a simple solution that is sometimes made more complex than it needs to be.

Would you like to help keep this channel going?

I have multiple courses offered on Skillshare (get 2 months free):

Courses offered on Udemy at a discount:

Getting Started:

Advanced Topics:

New Mastering Regular Expressions in JavaScript:

NEW Functional Programming in JavaScript:

Tutorials referred to in this video:
Arrow Functions:
Understanding Slice:
Using map:
Ternary Operator:
Understanding Callbacks: &

For more resources on JavaScript:

#javascript #AllThingsJavaScriptLLC

Original source

4 thoughts on “JavaScript Problem: Capitalize the First Letter of Multiple Strings

  • September 1, 2019 at 04:16

    May I suggest 2 things?:
    1. Sort your code.
    2. Provide the alternative solution (un-arrowed function).
    Great solution 🙂

  • September 1, 2019 at 04:16

    Yeah !!! Arrow function are way more sexier and modern 🙂 also what I like to do (and it’s far fetched) is that if I don’t have an argument and to avoid parent’ I use an underscore like this _ => 'arrow function are awesome' but I am a hobbyist and it would probably be confusing working in a team and if you have only one long expression you can use parent’ on the other side to avoid the curls and the return key word but haha it’s more JS poésie than some normal way I assume

  • September 1, 2019 at 04:16

    Hmmm… is the typo "frist" in your banner image, on the opening screen, there to get people to comment and raise engagement? Or is it a legit typo? Well, either way, it worked. Here's your comment! 😝👍

Leave a Reply