✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
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);