This is one of the most common programming interview questions that you would have come across. So here we will be seeing how we can capitalize on the first word in a string using 3 different approaches.
Here is the code sample that shows you how to capitalize the first word in a given string.
#javascript