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?
https://www.patreon.com/allthingsjavascript
I have multiple courses offered on Skillshare (get 2 months free): https://www.skillshare.com/r/profile/Steven-Hancock/24508
Courses offered on Udemy at a discount:
Getting Started: https://www.udemy.com/learn-modern-javascript-getting-started/?couponCode=GETTINGSTARTED2019
Advanced Topics: https://www.udemy.com/learn-modern-javascript-advanced-topics/?couponCode=ADVANCED2019
New Mastering Regular Expressions in JavaScript:
https://www.udemy.com/mastering-regular-expressions-in-javascript/?couponCode=YOUTUBE
NEW Functional Programming in JavaScript: https://www.udemy.com/functional-programming-in-javascript-a-practical-guide/?couponCode=YOUTUBE19
Tutorials referred to in this video:
Arrow Functions: https://youtu.be/_F-x9CgArBg
Understanding Slice: https://youtu.be/pCqfbzj2iLY
Using map: https://youtu.be/W5TtMAYUPGQ
Ternary Operator: https://youtu.be/Sa7E1yRHsIU
Understanding Callbacks: https://youtu.be/Nau-iEEgEoM & https://youtu.be/tBjvWZn9fvs
For more resources on JavaScript:
http://www.allthingsjavascript.com
#javascript #AllThingsJavaScriptLLC
Original source
4 responses to “JavaScript Problem: Capitalize the First Letter of Multiple Strings”
Excellent.
May I suggest 2 things?:
1. Sort your code.
2. Provide the alternative solution (un-arrowed function).
Great solution 🙂
Nice solution to McKay 👌👏👏
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
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! 😝👍