10 lines
129 B
JavaScript
10 lines
129 B
JavaScript
function sumSalaries(salaries) {
|
|
|
|
let sum = 0;
|
|
for (let name in salaries) {
|
|
sum += salaries[name];
|
|
}
|
|
|
|
return sum;
|
|
}
|
|
|