capitalizeEveryWord
Capitalizes the first letter of every word in a string.
- Use
String.prototype.replace()
to match the first character of each word andString.prototype.toUpperCase()
to capitalize it.
Capitalizes the first letter of every word in a string.
String.prototype.replace()
to match the first character of each word and String.prototype.toUpperCase()
to capitalize it.