|
|
|
|
@ -765,9 +765,12 @@ const webTechs = [
|
|
|
|
|
- Find the average age(all items divided by number of items)
|
|
|
|
|
- Find the range of the ages(max minus min)
|
|
|
|
|
- Compare the value of (min - average) and (max - average), use _abs()_ method
|
|
|
|
|
1.Slice the first ten countries from the [countries array](https://github.com/Asabeneh/30DaysOfJavaScript/tree/master/data/countries.js)
|
|
|
|
|
1. Find the middle country(ies) in the [countries array](https://github.com/Asabeneh/30DaysOfJavaScript/tree/master/data/countries.js)
|
|
|
|
|
2. Divide the countries array into two equal arrays if it is even. If countries array is not even , one more country for the first half.
|
|
|
|
|
|
|
|
|
|
2. Slice the first ten countries from the [countries array](https://github.com/Asabeneh/30DaysOfJavaScript/tree/master/data/countries.js)
|
|
|
|
|
|
|
|
|
|
3. Find the middle country(ies) in the [countries array](https://github.com/Asabeneh/30DaysOfJavaScript/tree/master/data/countries.js)
|
|
|
|
|
|
|
|
|
|
4. Divide the countries array into two equal arrays if it is even. If countries array is not even , one more country for the first half.
|
|
|
|
|
|
|
|
|
|
🎉 CONGRATULATIONS ! 🎉
|
|
|
|
|
|
|
|
|
|
|