Can someone help me to pass this? This is only returning the first value. And when I try to use += it shows an error.
function addValues(obj) {
for (let key in obj) {
let sum = obj[key];
return sum;
}
}
Type your question above this line.
Course: https://www.educative.io/collection/5679346740101120/5720605454237696
Lesson: https://www.educative.io/collection/page/5679346740101120/5720605454237696/5647906690301952