Conquer the JavaScript Interview: Capitalize Words [Beginner Skill Level]

preview_player
Показать описание
Link to this Playlist:

This is a part of my Algorithms and Data Structures playlist series. We cover a lot of common interview questions asked during whiteboards for entry level developers. Learning to master these takes time, practice, and pattern recognition. So I'll be helping you equip a toolbelt and filling it with as many tools as I can to help prepare you crush those interviews! Remember: "Luck is where practice meets opportunity."

In this video we cover another beginner level algorithm that utilizes a cool trick using index position logic. We need to take a lowercase string and capitalize the first letter of each new word. We achieve this by concatenating a result string in a for loop. During the loop we use the iterator i to determine if "i - 1," which represents the previous character in the string, is an empty space or not. And just like that we learn a cool little trick to solve this algorithm!

Don't forget to like this video and subscribe to our channel – we're publishing more videos and walkthroughs every week. Comment below and let us know what you'd like to see next!

Рекомендации по теме
visit shbcf.ru