#challenge



💻 Capitalize the First Letter of Each Word | #easy



Create a function that takes a string as an argument and converts the first character of each word to uppercase. Return the newly formatted string.



Examples:



MakeTitle("This is a title") ➞ "This Is A Title"

MakeTitle("capitalize every word") ➞ "Capitalize Every Word"

MakeTitle("I Like Pizza") ➞ "I Like Pizza"

MakeTitle("PIZZA PIZZA PIZZA") ➞ "PIZZA PIZZA PIZZA"



For your convenience: dotnetfiddle.



🏆 Leave your solutions in the comments. The solution will be posted below in a couple of hours 👇



#interview