From 06583cd77d63264a22f967aeb1c71dcf60fdced9 Mon Sep 17 00:00:00 2001
From: yendoz <102748767+yendoz@users.noreply.github.com>
Date: Sat, 16 Apr 2022 21:46:20 +0900
Subject: [PATCH 01/10] Update 03_booleans_operators_date.md
---
03_Day_Booleans_operators_date/03_booleans_operators_date.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/03_Day_Booleans_operators_date/03_booleans_operators_date.md b/03_Day_Booleans_operators_date/03_booleans_operators_date.md
index bb376ae..4baa0b8 100644
--- a/03_Day_Booleans_operators_date/03_booleans_operators_date.md
+++ b/03_Day_Booleans_operators_date/03_booleans_operators_date.md
@@ -304,8 +304,8 @@ let isRaining = true
isRaining
? console.log('You need a rain coat.')
: console.log('No need for a rain coat.')
-isRaining = false
+let isRaining = false
isRaining
? console.log('You need a rain coat.')
: console.log('No need for a rain coat.')
From 2befce4d06765e83a96072ae39b6825cae443dab Mon Sep 17 00:00:00 2001
From: yendoz <102748767+yendoz@users.noreply.github.com>
Date: Sat, 16 Apr 2022 21:50:01 +0900
Subject: [PATCH 02/10] Update 03_booleans_operators_date.md
examples of ternary operators
---
03_Day_Booleans_operators_date/03_booleans_operators_date.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/03_Day_Booleans_operators_date/03_booleans_operators_date.md b/03_Day_Booleans_operators_date/03_booleans_operators_date.md
index 4baa0b8..38b0f63 100644
--- a/03_Day_Booleans_operators_date/03_booleans_operators_date.md
+++ b/03_Day_Booleans_operators_date/03_booleans_operators_date.md
@@ -321,8 +321,8 @@ let number = 5
number > 0
? console.log(`${number} is a positive number`)
: console.log(`${number} is a negative number`)
-number = -5
+let number = -5
number > 0
? console.log(`${number} is a positive number`)
: console.log(`${number} is a negative number`)
From f60838950ae1329f5f7526def08ca93b36b036a5 Mon Sep 17 00:00:00 2001
From: yendoz <102748767+yendoz@users.noreply.github.com>
Date: Sun, 17 Apr 2022 00:11:16 +0900
Subject: [PATCH 03/10] Update 03_booleans_operators_date.md
---
03_Day_Booleans_operators_date/03_booleans_operators_date.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/03_Day_Booleans_operators_date/03_booleans_operators_date.md b/03_Day_Booleans_operators_date/03_booleans_operators_date.md
index 38b0f63..576e5d9 100644
--- a/03_Day_Booleans_operators_date/03_booleans_operators_date.md
+++ b/03_Day_Booleans_operators_date/03_booleans_operators_date.md
@@ -565,7 +565,7 @@ console.log(`${date}/${month}/${year} ${hours}:${minutes}`) // 4/1/2020 0:56
The perimeter of the triangle is 12
```
-1. Get length and width using prompt and calculate an area of rectangle (area = length x width and the perimeter of rectangle (perimeter = 2 x (length + width))
+1. Get length and width using prompt and calculate an area of rectangle (area = length x width) and the perimeter of rectangle (perimeter = 2 x (length + width))
1. Get radius using prompt and calculate the area of a circle (area = pi x r x r) and circumference of a circle(c = 2 x pi x r) where pi = 3.14.
1. Calculate the slope, x-intercept and y-intercept of y = 2x -2
1. Slope is m = (y2-y1)/(x2-x1). Find the slope between point (2, 2) and point(6,10)
From 6bbd2fe2eb98bcf3b7bba5eb3f3f5e01baed80a7 Mon Sep 17 00:00:00 2001
From: yendoz <102748767+yendoz@users.noreply.github.com>
Date: Sat, 23 Apr 2022 23:25:55 +0900
Subject: [PATCH 04/10] exercise2 6-7
I found out that the original countries array didn't have `Iceland` but there were at these two quizzes.
---
06_Day_Loops/06_day_loops.md | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/06_Day_Loops/06_day_loops.md b/06_Day_Loops/06_day_loops.md
index c093495..720a2c7 100644
--- a/06_Day_Loops/06_day_loops.md
+++ b/06_Day_Loops/06_day_loops.md
@@ -408,7 +408,6 @@ for(let i = 0; i <= 5; i++){
['Germany', 'GER', 7],
['Hungary', 'HUN', 7],
['Ireland', 'IRE', 7],
- ['Iceland', 'ICE', 7],
['Japan', 'JAP', 5],
['Kenya', 'KEN', 5]
]
@@ -417,7 +416,7 @@ for(let i = 0; i <= 5; i++){
2. In above countries array, check if there is a country or countries containing the word 'land'. If there are countries containing 'land', print it as array. If there is no country containing the word 'land', print 'All these countries are without land'.
```sh
- ['Finland','Ireland', 'Iceland']
+ ['Finland','Ireland']
```
3. In above countries array, check if there is a country or countries end with a substring 'ia'. If there are countries end with, print it as array. If there is no country containing the word 'ai', print 'These are countries ends without ia'.
From e5b4a89285205546333cc0ffebe0a3c3c78d8f61 Mon Sep 17 00:00:00 2001
From: yendoz <102748767+yendoz@users.noreply.github.com>
Date: Mon, 2 May 2022 11:39:34 +0900
Subject: [PATCH 05/10] Update 09_day_higher_order_functions.md
---
.../09_day_higher_order_functions.md | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/09_Day_Higher_order_functions/09_day_higher_order_functions.md b/09_Day_Higher_order_functions/09_day_higher_order_functions.md
index 677e7b4..80319b3 100644
--- a/09_Day_Higher_order_functions/09_day_higher_order_functions.md
+++ b/09_Day_Higher_order_functions/09_day_higher_order_functions.md
@@ -102,7 +102,7 @@ console.log(sumArray(numbers))
```
```sh
-15
+10
```
The above example can be simplified as follows:
@@ -122,7 +122,7 @@ console.log(sumArray(numbers))
```
```sh
-15
+10
```
### Setting time
@@ -191,10 +191,8 @@ arr.forEach((element, index, arr) => console.log(index, element, arr))
```
```js
-let sum = 0;
const numbers = [1, 2, 3, 4, 5];
numbers.forEach(num => console.log(num))
-console.log(sum)
```
```sh
From 31518ef95b5c429ee0d5af9d48197df00d6bd3fe Mon Sep 17 00:00:00 2001
From: yendoz <102748767+yendoz@users.noreply.github.com>
Date: Thu, 5 May 2022 16:39:35 +0900
Subject: [PATCH 06/10] Update 09_day_higher_order_functions.md
---
.../09_day_higher_order_functions.md | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/09_Day_Higher_order_functions/09_day_higher_order_functions.md b/09_Day_Higher_order_functions/09_day_higher_order_functions.md
index 80319b3..3277c12 100644
--- a/09_Day_Higher_order_functions/09_day_higher_order_functions.md
+++ b/09_Day_Higher_order_functions/09_day_higher_order_functions.md
@@ -662,7 +662,6 @@ const products = [
]
```
- ````
3. \*\*\* Try to develop a program which calculate measure of central tendency of a sample(mean, median, mode) and measure of variability(range, variance, standard deviation). In addition to those measures find the min, max, count, percentile, and frequency distribution of the sample. You can create an object called statistics and create all the functions which do statistical calculations as method for the statistics object. Check the output below.
@@ -679,8 +678,7 @@ const products = [
console.log('Mode: ', statistics.mode()) // {'mode': 26, 'count': 5}
console.log('Variance: ',statistics.var()) // 17.5
console.log('Standard Deviation: ', statistics.std()) // 4.2
- console.log('Variance: ',statistics.var()) // 17.5
- console.log('Frequency Distribution: ',statistics.freqDist()) # [(20.0, 26), (16.0, 27), (12.0, 32), (8.0, 37), (8.0, 34), (8.0, 33), (8.0, 31), (8.0, 24), (4.0, 38), (4.0, 29), (4.0, 25)]
+ console.log('Frequency Distribution: ',statistics.freqDist()) // [(20.0, 26), (16.0, 27), (12.0, 32), (8.0, 37), (8.0, 34), (8.0, 33), (8.0, 31), (8.0, 24), (4.0, 38), (4.0, 29), (4.0, 25)]
```
```sh
From 9cca81d3fb86339832d3404c519254a208f43588 Mon Sep 17 00:00:00 2001
From: yendoz <102748767+yendoz@users.noreply.github.com>
Date: Thu, 12 May 2022 12:48:53 +0900
Subject: [PATCH 07/10] Update 12_day_regular_expressions.md
---
12_Day_Regular_expressions/12_day_regular_expressions.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/12_Day_Regular_expressions/12_day_regular_expressions.md b/12_Day_Regular_expressions/12_day_regular_expressions.md
index adf91c4..914ebbd 100644
--- a/12_Day_Regular_expressions/12_day_regular_expressions.md
+++ b/12_Day_Regular_expressions/12_day_regular_expressions.md
@@ -430,8 +430,8 @@ console.log(result) // true
1. The position of some particles on the horizontal x-axis -12, -4, -3 and -1 in the negative direction, 0 at origin, 4 and 8 in the positive direction. Extract these numbers and find the distance between the two furthest particles.
```js
-points = ['-1', '2', '-4', '-3', '-1', '0', '4', '8']
-sortedPoints = [-4, -3, -1, -1, 0, 2, 4, 8]
+points = ['-1', '2', '-4', '-3', '0', '4', '8']
+sortedPoints = [-4, -3, -1, 0, 2, 4, 8]
distance = 12
```
From f5b44976f65311a7467ad8bbad7478aa886c3488 Mon Sep 17 00:00:00 2001
From: yendoz <102748767+yendoz@users.noreply.github.com>
Date: Thu, 12 May 2022 13:03:20 +0900
Subject: [PATCH 08/10] Update 12_day_regular_expressions.md
---
12_Day_Regular_expressions/12_day_regular_expressions.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/12_Day_Regular_expressions/12_day_regular_expressions.md b/12_Day_Regular_expressions/12_day_regular_expressions.md
index 914ebbd..f5e9bed 100644
--- a/12_Day_Regular_expressions/12_day_regular_expressions.md
+++ b/12_Day_Regular_expressions/12_day_regular_expressions.md
@@ -388,7 +388,7 @@ const matches = txt.match(pattern)
console.log(matches) // ['6', '2019']
```
-### Cart ^
+### Caret ^
- Starts with
@@ -430,8 +430,8 @@ console.log(result) // true
1. The position of some particles on the horizontal x-axis -12, -4, -3 and -1 in the negative direction, 0 at origin, 4 and 8 in the positive direction. Extract these numbers and find the distance between the two furthest particles.
```js
-points = ['-1', '2', '-4', '-3', '0', '4', '8']
-sortedPoints = [-4, -3, -1, 0, 2, 4, 8]
+points = ['-1', '2', '-4', '-3', '-1', '0', '4', '8']
+sortedPoints = [-4, -3, -1, -1, 0, 2, 4, 8]
distance = 12
```
From 9acb2cdbcf3ade53c237525456137493382859f5 Mon Sep 17 00:00:00 2001
From: yendoz <102748767+yendoz@users.noreply.github.com>
Date: Thu, 12 May 2022 13:04:54 +0900
Subject: [PATCH 09/10] Update 12_day_regular_expressions.md
---
12_Day_Regular_expressions/12_day_regular_expressions.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/12_Day_Regular_expressions/12_day_regular_expressions.md b/12_Day_Regular_expressions/12_day_regular_expressions.md
index f5e9bed..c178962 100644
--- a/12_Day_Regular_expressions/12_day_regular_expressions.md
+++ b/12_Day_Regular_expressions/12_day_regular_expressions.md
@@ -430,9 +430,9 @@ console.log(result) // true
1. The position of some particles on the horizontal x-axis -12, -4, -3 and -1 in the negative direction, 0 at origin, 4 and 8 in the positive direction. Extract these numbers and find the distance between the two furthest particles.
```js
-points = ['-1', '2', '-4', '-3', '-1', '0', '4', '8']
-sortedPoints = [-4, -3, -1, -1, 0, 2, 4, 8]
-distance = 12
+points = ['-12', '-4', '-3', '-1', '0', '4', '8']
+sortedPoints = [-12, -4, -3, -1, 0, 4, 8]
+distance = 20
```
1. Write a pattern which identify if a string is a valid JavaScript variable
From fd6cf5cd4e078a44f5b0b2a3bc4e9da1c039e8e2 Mon Sep 17 00:00:00 2001
From: yendoz <102748767+yendoz@users.noreply.github.com>
Date: Fri, 13 May 2022 20:33:01 +0900
Subject: [PATCH 10/10] Update 15_day_classes.md
---
15_Day_Classes/15_day_classes.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/15_Day_Classes/15_day_classes.md b/15_Day_Classes/15_day_classes.md
index 3088dcb..74093fc 100644
--- a/15_Day_Classes/15_day_classes.md
+++ b/15_Day_Classes/15_day_classes.md
@@ -243,7 +243,7 @@ console.log(person2.getFullName())
```sh
Asabeneh Yetayeh
-test.js:19 Lidiya Tekle
+Lidiya Tekle
```
### Properties with initial value