JavaScript Problem: Capitalize the First Letter of Multiple Strings

preview_player
Показать описание
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?

Courses offered on Udemy at a discount:

New Mastering Regular Expressions in JavaScript:

Tutorials referred to in this video:

For more resources on JavaScript:

#javascript #AllThingsJavaScriptLLC
Рекомендации по теме
Комментарии
Автор

Hi , I'm Ananth from india, age 24, nice to meet you,

Im a MS software engineer graduated and I have firm desire to learn programming and programming languages, Android, ios, frontend, backend, object oriented programming.

Its my dream and wish to work remote developer and freelancing

ananthnaren
Автор

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

_chris_
Автор

This is really good! Thank you very much!

ChrisTian-oxnr
Автор

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

Luxcium
Автор

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! 😝👍

foreverandadave
Автор

function TitleCapitalize(str){
str=str.toLowerCase();
let words=str.split(" ");
let resultWords=[];
for(let word of words){
let
let others="";
for(let i=1;i<word.length;i++){

}

}
return resultWords.join(" ");
}

angelcaru
Автор

Great Tutorial, Thanks

{2022-03-07}

Pareshbpatel