From 8d39f2805ac92307ad653c5d6f997fa0f9a12146 Mon Sep 17 00:00:00 2001 From: Ayush <114055175+GentleClash@users.noreply.github.com> Date: Tue, 4 Jul 2023 21:38:58 +0530 Subject: [PATCH] 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. --- .../09_day_higher_order_functions.md | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/09_Day_Higher_order_functions/09_day_higher_order_functions.md b/09_Day_Higher_order_functions/09_day_higher_order_functions.md index 9aa6871..7e9775e 100644 --- a/09_Day_Higher_order_functions/09_day_higher_order_functions.md +++ b/09_Day_Higher_order_functions/09_day_higher_order_functions.md @@ -616,24 +616,24 @@ const products = [ // Your output should look like this console.log(mostSpokenLanguages(countries, 10)) [ - {country: 'English',count:91}, - {country: 'French',count:45}, - {country: 'Arabic',count:25}, - {country: 'Spanish',count:24}, - {country:'Russian',count:9}, - {country:'Portuguese', count:9}, - {country:'Dutch',count:8}, - {country:'German',count:7}, - {country:'Chinese',count:5}, - {country:'Swahili',count:4} + {language: 'English',count:91}, + {language: 'French',count:45}, + {language: 'Arabic',count:25}, + {language: 'Spanish',count:24}, + {language:'Russian',count:9}, + {language:'Portuguese', count:9}, + {language:'Dutch',count:8}, + {language:'German',count:7}, + {language:'Chinese',count:5}, + {language:'Swahili',count:4} ] // Your output should look like this console.log(mostSpokenLanguages(countries, 3)) [ - {country: 'English',count: 91}, - {country: 'French',count: 45}, - {country: 'Arabic',count: 25}, + {language: 'English',count: 91}, + {language: 'French',count: 45}, + {language: 'Arabic',count: 25}, ]``` ````