pull/21/head
Asabeneh 6 years ago
parent 27c857d29d
commit 9a0a37e606

@ -1,9 +1,10 @@
## 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 >>](#)
--
![Day 5](../images/banners/day_1_5.png)
- [Table of Contents](#table-of-contents) - [📔 Day 5](#%f0%9f%93%94-day-5)
- [&lt;&lt; Day 1 | Day 3 &gt;&gt;](#ltlt-day-1--day-3-gtgt)
- [Arrays](#arrays) - [Arrays](#arrays)
- [How to create an empty array](#how-to-create-an-empty-array) - [How to create an empty array](#how-to-create-an-empty-array)
- [How to create an array with values](#how-to-create-an-array-with-values) - [How to create an array with values](#how-to-create-an-array-with-values)
@ -28,7 +29,9 @@
- [Add an element from the beginning](#add-an-element-from-the-beginning) - [Add an element from the beginning](#add-an-element-from-the-beginning)
- [Reversing array order](#reversing-array-order) - [Reversing array order](#reversing-array-order)
- [Sorting elements in array](#sorting-elements-in-array) - [Sorting elements in array](#sorting-elements-in-array)
- [Exercise](#exercise) - [💻 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 = [
@ -649,3 +654,6 @@ const webTechs = [
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 >>](#)

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Loading…
Cancel
Save