@ -1,34 +1,37 @@
## Table of Contents
## Table of Contents
## [<< Day 1 ](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/readMe.md ) | [Day 3 >> ](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/03_Day/03_booleans_operators_date.md )
[<< Day 4 ](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/04_Day/04_conditionals.md ) | [Day 6 >> ](# )
--
- [Table of Contents ](#table-of-contents )

- [<< Day 1 | Day 3 >> ](#ltlt-day-1--day-3-gtgt )
- [Arrays ](#arrays )
- [📔 Day 5 ](#%f0%9f%93%94-day-5 )
- [How to create an empty array ](#how-to-create-an-empty-array )
- [Arrays ](#arrays )
- [How to create an array with values ](#how-to-create-an-array-with-values )
- [How to create an empty array ](#how-to-create-an-empty-array )
- [Creating an array using split ](#creating-an-array-using-split )
- [How to create an array with values ](#how-to-create-an-array-with-values )
- [Accessing array items using index ](#accessing-array-items-using-index )
- [Creating an array using split ](#creating-an-array-using-split )
- [Modifying array element ](#modifying-array-element )
- [Accessing array items using index ](#accessing-array-items-using-index )
- [Methods to manipulate array ](#methods-to-manipulate-array )
- [Modifying array element ](#modifying-array-element )
- [Array Constructor ](#array-constructor )
- [Methods to manipulate array ](#methods-to-manipulate-array )
- [Creating static values with fill ](#creating-static-values-with-fill )
- [Array Constructor ](#array-constructor )
- [Concatenating array using concat ](#concatenating-array-using-concat )
- [Creating static values with fill ](#creating-static-values-with-fill )
- [Getting array length ](#getting-array-length )
- [Concatenating array using concat ](#concatenating-array-using-concat )
- [Getting index an element in arr array ](#getting-index-an-element-in-arr-array )
- [Getting array length ](#getting-array-length )
- [Getting last index of an element in array ](#getting-last-index-of-an-element-in-array )
- [Getting index an element in arr array ](#getting-index-an-element-in-arr-array )
- [Checking array ](#checking-array )
- [Getting last index of an element in array ](#getting-last-index-of-an-element-in-array )
- [Converting array to string ](#converting-array-to-string )
- [Checking array ](#checking-array )
- [Joining array elements ](#joining-array-elements )
- [Converting array to string ](#converting-array-to-string )
- [Slice array elements ](#slice-array-elements )
- [Joining array elements ](#joining-array-elements )
- [Splice method in array ](#splice-method-in-array )
- [Slice array elements ](#slice-array-elements )
- [Adding item to an array using push ](#adding-item-to-an-array-using-push )
- [Splice method in array ](#splice-method-in-array )
- [Removing the end element using pop ](#removing-the-end-element-using-pop )
- [Adding item to an array using push ](#adding-item-to-an-array-using-push )
- [Removing an element from the beginning ](#removing-an-element-from-the-beginning )
- [Removing the end element using pop ](#removing-the-end-element-using-pop )
- [Add an element from the beginning ](#add-an-element-from-the-beginning )
- [Removing an element from the beginning ](#removing-an-element-from-the-beginning )
- [Reversing array order ](#reversing-array-order )
- [Add an element from the beginning ](#add-an-element-from-the-beginning )
- [Sorting elements in array ](#sorting-elements-in-array )
- [Reversing array order ](#reversing-array-order )
- [Exercise ](#exercise )
- [Sorting elements in array ](#sorting-elements-in-array )
- [💻 Exercise ](#%f0%9f%92%bb-exercise )
# 📔 Day 5
## Arrays
## Arrays
@ -546,7 +549,9 @@ webTechs.reverse() // after sorting we can reverse it
console.log(webTechs) // ["Redux", "React", "Node", "MongoDB", "JavaScript", "HTML", "CSS"]
console.log(webTechs) // ["Redux", "React", "Node", "MongoDB", "JavaScript", "HTML", "CSS"]
```
```
## Exercise
🌕 You are diligent and you have already achieved quite a lot. You have just completed day 4 challenge and you are four steps a head in to your way to greatness. Now do some exercises for your brain and for your muscle.
## 💻 Exercise
```js
```js
const countries = [
const countries = [
@ -648,4 +653,7 @@ const webTechs = [
- Compare the value of (min - average) and (max - average), use *abs()* method
- Compare the value of (min - average) and (max - average), use *abs()* method
1. Find the middle country(ies) in the [countries list ](https://github.com/Asabeneh/30DaysOfJavaScript/tree/master/data/countries.js )
1. Find the middle country(ies) in the [countries list ](https://github.com/Asabeneh/30DaysOfJavaScript/tree/master/data/countries.js )
1. Divide the countries list into two equal lists if it is even. If countries array is not even one more country for the first half.
1. Divide the countries list into two equal lists if it is even. If countries array is not even one more country for the first half.
🎉 CONGRATULATIONS ! 🎉
[<< Day 4 ](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/04_Day/04_conditionals.md ) | [Day 6 >> ](# )