function LetterCapitalize(str) { return str .split(' ') .map(word => word[0].toUpperCase() + word.slice(1)) .join(' '); }copy
function LetterCapitalize(str) { return str .split(' ') .map(word => word[0].toUpperCase() + word.slice(1)) .join(' '); }