So I have an understanding of how the replace() works. However, I don’t know how to fully implement it.
For example, say I wanted to capitalize each letter in a sentence.
I.E. hello everyone, how are you?..would be…Hello Everyone, How Are You?
This example is from https://www.freecodecamp.org/challenges/title-case-a-sentence.
One of the hints states I should use the replace method. But I don’t know how to tell my code to look for only the first letter in a word.
Any ideas?