en.javascript.info/1-js/4-data-structures/4-object/3-sum-salaries/_js.view/solution.js
Ilya Kantor 2b874a73be ok
2016-03-09 00:16:22 +03:00

10 lines
129 B
JavaScript

function sumSalaries(salaries) {
let sum = 0;
for (let name in salaries) {
sum += salaries[name];
}
return sum;
}