diff --git a/09_Day/09_day_higher_order_functions.md b/09_Day/09_day_higher_order_functions.md index 407579c..9fdafc8 100644 --- a/09_Day/09_day_higher_order_functions.md +++ b/09_Day/09_day_higher_order_functions.md @@ -241,9 +241,7 @@ const countries = [ 'Kenya' ] const countriesToUpperCase = countries.map(function(country){ - let countryCode = country.toUpperCase().slice(0, 3) - let country = country.length - return [] + return country.toUpperCase(); }) console.log(countriesToUpperCase) // ['ALBANIA', 'BOLIVIA', 'CANADA', 'DENMARK', 'ETHIOPIA', 'FINLAND', 'GERMANY', 'HUNGARY', 'IRELAND', 'JAPAN', 'KENYA'] @@ -581,4 +579,4 @@ console.log(users); // sorted ascending 🎉 CONGRATULATIONS ! 🎉 -[<< Day 8](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/08_Day/08_day_objects.md) | [Day 10 >>](#) \ No newline at end of file +[<< Day 8](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/08_Day/08_day_objects.md) | [Day 10 >>](#)