С
Size: a a a
L
L
function calculateAverageCountryPopulation(countries) {
if ( !countries.length )
throw new Error("empty countries")
return countries.reduce((s, v) => s + v.population, 0) / countries.length;
}
R
function calculateAverageCountryPopulation(countries) {
if ( !countries.length )
throw new Error("empty countries")
return countries.reduce((s, v) => s + v.population, 0) / countries.length;
}
L
🇧
t
А
🇧
AS
L
t
Object.values(users).forEach item
li = createElement li
li.setAttribute id item.propertyName