I\'m learning how to capitalize the first letter of each word in a string and for this solution I understand everything except the word.substr(1) portion. I see that it\'s a
Here is a quick code snippet. This code snippet will allow you to capitalize the first letter of a string using JavaScript.
function CapitlizeString(word) { return word.charAt(0).toUpperCase() + word.slice(1); }