|
|
|
@ -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 >>](#)
|
|
|
|
|
[<< Day 8](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/08_Day/08_day_objects.md) | [Day 10 >>](#)
|
|
|
|
|