✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What is the value of totalLength after this code from a course exercise is executed?
const words = ["apple", "banana", "cherry"];
const totalLength = words
.map(word => word.length)
.reduce((sum, length) => sum + length, 0);