✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
How can you modify this function to correctly capitalize only the first letter of a string?
function capitalize(str) {
return str.toUpperCase();
}