let salaries= {
John:100,
Ann:160,
Pete:130,
}
let sum;
let summ=(obj)=>{
for(key in obj) {
sum+=obj[key];
}
}
summ(salaries);
console.log(typeof(sum));
console.log(sum);
for (key in obj) {
console.log(sum, obj[key])
sum += obj[key];
}