Update 09_day_higher_order_functions.md

Level 3 exercise, Question 2nd.
The given output snippet should contain "language" instead of "country" in the objects.
pull/800/head
Ayush 2 years ago committed by GitHub
parent 55d8e3dbc0
commit 8d39f2805a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -616,24 +616,24 @@ const products = [
// Your output should look like this // Your output should look like this
console.log(mostSpokenLanguages(countries, 10)) console.log(mostSpokenLanguages(countries, 10))
[ [
{country: 'English',count:91}, {language: 'English',count:91},
{country: 'French',count:45}, {language: 'French',count:45},
{country: 'Arabic',count:25}, {language: 'Arabic',count:25},
{country: 'Spanish',count:24}, {language: 'Spanish',count:24},
{country:'Russian',count:9}, {language:'Russian',count:9},
{country:'Portuguese', count:9}, {language:'Portuguese', count:9},
{country:'Dutch',count:8}, {language:'Dutch',count:8},
{country:'German',count:7}, {language:'German',count:7},
{country:'Chinese',count:5}, {language:'Chinese',count:5},
{country:'Swahili',count:4} {language:'Swahili',count:4}
] ]
// Your output should look like this // Your output should look like this
console.log(mostSpokenLanguages(countries, 3)) console.log(mostSpokenLanguages(countries, 3))
[ [
{country: 'English',count: 91}, {language: 'English',count: 91},
{country: 'French',count: 45}, {language: 'French',count: 45},
{country: 'Arabic',count: 25}, {language: 'Arabic',count: 25},
]``` ]```
```` ````

Loading…
Cancel
Save