Title Case a Sentence in JavaScript

preview_player
Показать описание

Learn how to use the map() method to title case a string in JavaScript.
Рекомендации по теме
Комментарии
Автор

I had to watch this video a few times to understand (I'm slow). But finally I get what JavaScript is actually doing to convert the capitalization. Thank you very much for the video and explanation. Much love :D

psk
Автор

Ugh, I was struggling with this forever. FCC actually does introduce .map() before this challange, but it's a once and done thing, so I totally forgot about it. Great video! -Andy

captstrugglebunny
Автор

Awesome! This method is very easy to understand. Thank you!

keithanphilander
Автор

Thank you for explaining this and introducing a new concept to me: .map()

auraholliday
Автор

Thanks. Really clear explanation. I should probably know this already, but why are we using square brackets [0] and curly brackets (1) in the code below?:
return word[0].toUpperCase() + word.slice(1).toLowerCase();

supersteve
join shbcf.ru