Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
f231757
video tutorials added
Asabeneh Jun 20, 2020
85899a6
Introduction
Asabeneh Jul 10, 2020
6e816d7
Data types
Asabeneh Jul 10, 2020
8370b81
Booleans Operators Date
Asabeneh Jul 10, 2020
cec710f
Booleans Operators Date
Asabeneh Jul 10, 2020
0a868e1
Booleans Operators Date
Asabeneh Jul 10, 2020
469bc26
Introduction
Asabeneh Jul 10, 2020
6aecad8
Data Types
Asabeneh Jul 10, 2020
53048e2
Conditionals
Asabeneh Jul 10, 2020
66e99f9
Arrays
Asabeneh Jul 10, 2020
69e3fcb
Functions
Asabeneh Jul 10, 2020
792dca3
Arrays
Asabeneh Jul 10, 2020
fd5ce62
Functions
Asabeneh Jul 10, 2020
b660ebd
Objects
Asabeneh Jul 10, 2020
f025fd0
Higher Order Functions
Asabeneh Jul 10, 2020
5030c42
Sets and Maps
Asabeneh Jul 10, 2020
8f3b626
Destructuring and Spreading
Asabeneh Jul 10, 2020
9bccf18
Regular Expressions
Asabeneh Jul 10, 2020
528eae7
Console Object Methods
Asabeneh Jul 10, 2020
25f0e52
Error handling
Asabeneh Jul 10, 2020
0f66cca
Classes
Asabeneh Jul 10, 2020
22080d3
JSON
Asabeneh Jul 10, 2020
cea2791
Web Storages
Asabeneh Jul 10, 2020
04ba1f6
Promises
Asabeneh Jul 10, 2020
b8bbeff
Closures
Asabeneh Jul 10, 2020
49f937a
Writing Clean Codes
Asabeneh Jul 10, 2020
9c41daf
DOM
Asabeneh Jul 10, 2020
9a01f9e
DOM
Asabeneh Jul 10, 2020
ae43d67
DOM
Asabeneh Jul 10, 2020
655a467
Manipulating DOM Object
Asabeneh Jul 10, 2020
3f08b48
Conditionals
Asabeneh Jul 10, 2020
4542bd0
Arrays
Asabeneh Jul 10, 2020
940956b
Loops
Asabeneh Jul 10, 2020
6682648
Loops
Asabeneh Jul 10, 2020
3abd13b
Functions
Asabeneh Jul 10, 2020
e9e166d
Objects
Asabeneh Jul 10, 2020
9873970
Hihger Order Functions
Asabeneh Jul 10, 2020
a6b05c3
Destructuring and Spreading
Asabeneh Jul 10, 2020
4da2487
Destructuring and Spreading
Asabeneh Jul 10, 2020
07ee73c
Web Storages
Asabeneh Jul 10, 2020
8f1def3
Web Storages
Asabeneh Jul 10, 2020
96e7e69
Event Listeners
Asabeneh Jul 10, 2020
646ecd9
Mini project solar system
Asabeneh Jul 10, 2020
2b5b53d
Event Listeners
Asabeneh Jul 10, 2020
166beff
World Countries Data Vizualization
Asabeneh Jul 10, 2020
8a85e2c
World Countries Data Vizualization 2
Asabeneh Jul 10, 2020
b0381df
Event listeners
Asabeneh Jul 10, 2020
91bc91b
Event listeners
Asabeneh Jul 10, 2020
db1e530
Mini project solar system
Asabeneh Jul 10, 2020
2f32af4
World Countries Data Visulalization 1
Asabeneh Jul 10, 2020
7cd6a2a
Mini project solar system
Asabeneh Jul 10, 2020
b4633de
Mini project solar system
Asabeneh Jul 10, 2020
46f0855
World Countries Data Visulalization 2
Asabeneh Jul 10, 2020
1415c3f
Portfolio
Asabeneh Jul 10, 2020
5a41bb0
Animating characters
Asabeneh Jul 10, 2020
5a47c34
Final Project
Asabeneh Jul 10, 2020
98c0111
Animating characters
Asabeneh Jul 10, 2020
c99a9c0
Final Projects
Asabeneh Jul 10, 2020
8ec9942
Min project portfolio
Asabeneh Jul 10, 2020
db4715c
Min project portfolio
Asabeneh Jul 10, 2020
ea8eeae
Final Projects
Asabeneh Jul 10, 2020
a91246d
Final Projects
Asabeneh Jul 10, 2020
669b24e
Introduction
Asabeneh Jul 10, 2020
0759060
Introduction
Asabeneh Jul 11, 2020
8d0e1b0
objects part, typo fixes
Asabeneh Jul 22, 2020
585c33e
fixes
Asabeneh Aug 17, 2020
41a3f95
day 9 output format changed
Asabeneh Aug 20, 2020
aa9cc2d
day 9 higher order function
Asabeneh Aug 21, 2020
06dd789
day 9 higher order function
Asabeneh Aug 21, 2020
c205c28
day 1 fixes
Asabeneh Aug 22, 2020
ff64df9
minor changes
Asabeneh Sep 6, 2020
8d98f73
paypal link has been added
Asabeneh Jan 25, 2021
07143be
paypal link has been added
Asabeneh Jan 26, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<h1> 30 Days Of JavaScript</h1>
<h1> 30 Days Of JavaScript: Data Types</h1>
<a class="header-badge" target="_blank" href="https://www.linkedin.com/in/asabeneh/">
<img src="https://img.shields.io/badge/style--5eba00.svg?label=LinkedIn&logo=linkedin&style=social">
</a>
Expand All @@ -14,7 +14,7 @@
</div>
</div>

[<< 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 1](../readMe.md) | [Day 3 >>](../03_Day_Booleans_operators_date/03_booleans_operators_date.md)

![Thirty Days Of JavaScript](../images/banners/day_1_2.png)

Expand Down Expand Up @@ -973,4 +973,4 @@ console.log(numInt) // 9

🎉 CONGRATULATIONS ! 🎉

[<< 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 1](../readMe.md) | [Day 3 >>](../03_Day_Booleans_operators_date/03_booleans_operators_date.md)
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<h1> 30 Days Of JavaScript</h1>
<h1> 30 Days Of JavaScript: Booleans, Operators, Date</h1>
<a class="header-badge" target="_blank" href="https://www.linkedin.com/in/asabeneh/">
<img src="https://img.shields.io/badge/style--5eba00.svg?label=LinkedIn&logo=linkedin&style=social">
</a>
Expand All @@ -13,7 +13,7 @@
</sub>
</div>

[<< Day 2](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/02_Day/02_day_data_types.md) | [Day 4 >>](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/04_Day/04_day_conditionals.md)
[<< Day 2](../02_Day_Data_types/02_day_data_types.md) | [Day 4 >>](../04_Day_Conditionals/04_day_conditionals.md)

![Thirty Days Of JavaScript](../images/banners/day_1_3.png)

Expand Down Expand Up @@ -272,7 +272,7 @@ console.log(count++) // 0
console.log(count) // 1
```

We use most of the time post-increment. At leas you should remember how to use post-increment operator.
We use most of the time post-increment. At least you should remember how to use post-increment operator.

### Decrement Operator

Expand Down Expand Up @@ -571,7 +571,7 @@ console.log(`${date}/${month}/${year} ${hours}:${minutes}`) // 4/1/2020 0:56
1. Slope is (m = y2-y1/x2-x1). Find the slope between point (2, 2) and point(6,10)
1. Compare the slope of above two questions.
1. Calculate the value of y (y = x^2 + 6x + 9). Try to use different x values and figure out at what x value y is 0.
1. Writ a script that prompt a user to enters hours and rate per hour. Calculate pay of the person?
1. Writ a script that prompt a user to enter hours and rate per hour. Calculate pay of the person?

```sh
Enter hours: 40
Expand Down Expand Up @@ -630,6 +630,4 @@ console.log(`${date}/${month}/${year} ${hours}:${minutes}`) // 4/1/2020 0:56
1. Create a human readable time format using the Date time object. The hour and the minute should be all the time two digits(7 hours should be 07 and 5 minutes should be 05 )
1. YYY-MM-DD HH:mm eg. 20120-01-02 07:05

🎉 CONGRATULATIONS ! 🎉

[<< Day 2](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/02_Day/02_day_data_types.md) | [Day 4 >>](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/04_Day/04_day_conditionals.md)
[<< Day 2](../02_Day_Data_types/02_day_data_types.md) | [Day 4 >>](../04_Day_Conditionals/04_day_conditionals.md)
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<h1> 30 Days Of JavaScript</h1>
<h1> 30 Days Of JavaScript: Conditionals</h1>
<a class="header-badge" target="_blank" href="https://www.linkedin.com/in/asabeneh/">
<img src="https://img.shields.io/badge/style--5eba00.svg?label=LinkedIn&logo=linkedin&style=social">
</a>
Expand All @@ -13,15 +13,15 @@
</sub>
</div>

[<< Day 3](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/03_Day/03_booleans_operators_date.md) | [Day 5 >>](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/05_Day/05_day_arrays.md)
[<< Day 3](../03_Day_Booleans_operators_date/03_booleans_operators_date.md) | [Day 5 >>](../05_Day_Arrays/05_day_arrays.md)

![Thirty Days Of JavaScript](../images/banners/day_1_4.png)

- [📔 Day 4](#-day-4)
- [Conditionals](#conditionals)
- [if](#if)
- [if else](#if-else)
- [if else if else](#if-else-if-else)
- [If](#if)
- [If Else](#if-else)
- [If Else if Else](#if-else-if-else)
- [Switch](#switch)
- [Ternary Operators](#ternary-operators)
- [💻 Exercises](#-exercises)
Expand All @@ -33,11 +33,11 @@

## Conditionals

Conditional statements are used to make decisions based on different conditions.
Conditional statements are used for make decisions based on different conditions.
By default , statements in JavaScript script executed sequentially from top to bottom. If the processing logic require so, the sequential flow of execution can be altered in two ways:

- Conditional execution: a block of one or more statements will be executed if a certain expression is true
- Repetitive execution: a block of one or more statements will be repetitively executed as long as a certain expression is true. In this section, we will cover _if_, _else_ , _else if_ statements. The comparison and logical operator we learned in the previous sections will be useful in here.
- Repetitive execution: a block of one or more statements will be repetitively executed as long as a certain expression is true. In this section, we will cover _if_, _else_ , _else if_ statements. The comparison and logical operators we learned in the previous sections will be useful in here.

Conditions can be implementing using the following ways:

Expand All @@ -47,14 +47,14 @@ Conditions can be implementing using the following ways:
- switch
- ternary operator

### if
### If

In JavaScript and other programming languages the key word _if_ is used to check if a condition is true and to execute the block code. To create an if condition, we need _if_ keyword, condition inside a parenthesis and block of code inside a curly bracket({}).
In JavaScript and other programming languages the key word _if_ is to used check if a condition is true and to execute the block code. To create an if condition, we need _if_ keyword, condition inside a parenthesis and block of code inside a curly bracket({}).

```js
// syntax
if (condition) {
//this part of code run for truthy condition
//this part of code runs for truthy condition
}
```

Expand All @@ -68,7 +68,7 @@ if (num > 0) {
// 3 is a positive number
```

As you can see in the above condition, 3 is greater than 0 and it is a positive number. The condition was true and the block code was executed. However, if the condition is false, we do not see a result.
As you can see in the condition example above, 3 is greater than 0, so it is a positive number. The condition was true and the block of code was executed. However, if the condition is false, we won't see any results.

```js
let isRaining = true
Expand All @@ -77,18 +77,18 @@ if (isRaining) {
}
```

The same goes for the second condition, if isRaining is false the if block will not be executed and we do not see an output. In order to see the result of the falsy condition, we should have another block, which is going to be _else_.
The same goes for the second condition, if isRaining is false the if block will not be executed and we do not see any output. In order to see the result of a falsy condition, we should have another block, which is going to be _else_.

### if else
### If Else

If condition is true the first block will be executed, if not the else condition will be executed.

```js
// syntax
if (condition) {
// this part of code run for truthy condition
// this part of code runs for truthy condition
} else {
// this part of code run for false condition
// this part of code runs for false condition
}
```

Expand Down Expand Up @@ -128,11 +128,11 @@ if (isRaining) {
// No need for a rain coat.
```

The above condition is false, therefore the else block was executed. How about if our condition is more than two, we will use *else if* conditions.
The last condition is false, therefore the else block was executed. What if we have more than two conditions? In that case, we would use *else if* conditions.

### if else if else
### If Else if Else

On our daily life, we make decision on daily basis. We make decision not by checking one or two conditions instead we make decisions based on multiple conditions. As similar to our daily life, programming is also full of conditions. We use *else if* when we have multiple conditions.
On our daily life, we make decisions on daily basis. We make decisions not by checking one or two conditions instead we make decisions based on multiple conditions. As similar to our daily life, programming is also full of conditions. We use *else if* when we have multiple conditions.

```js
// syntax
Expand Down Expand Up @@ -178,7 +178,7 @@ if (weather === 'rainy') {
### Switch

Switch is an alternative for **if else if else else**.
The switch statement starts with a switch keyword followed by a parenthesis and code block. Inside the code block we will have different cases. Case block run if the value in the switch statement parenthesis match with the case vale. The break is to terminate and it does not go down after the condition is satisfied. The default block run if all the cases don't satisfy the condition.
The switch statement starts with a *switch* keyword followed by a parenthesis and code block. Inside the code block we will have different cases. Case block runs if the value in the switch statement parenthesis matches with the case value. The break statement is to terminate execution so the code execution does not go down after the condition is satisfied. The default block runs if all the cases don't satisfy the condition.

```js
switch(caseValue){
Expand Down Expand Up @@ -264,7 +264,7 @@ switch (true) {

### Ternary Operators

Another way to write conditionals is using ternary operators. We have covered this in other sections but we should also mention it here.
Another way to write conditionals is using ternary operators. We have covered this in other sections, but we should also mention it here.

```js
let isRaining = true
Expand All @@ -273,13 +273,13 @@ isRaining
: console.log('No need for a rain coat.')
```

🌕 You are extraordinary and you have a remarkable potential. You have just completed day 4 challenges and you are four steps a head in to your way to greatness. Now do some exercises for your brain and for your muscle.
🌕 You are extraordinary and you have a remarkable potential. You have just completed day 4 challenges and you are four steps ahead to your way to greatness. Now do some exercises for your brain and muscle.

## 💻 Exercises

### Exercises: Level 1

1. Get user input using prompt(“Enter your age:”). If user is 18 or older , give feedback:You are old enough to drive but if not 18 give feedback to wait for the years he supposed to wait for.
1. Get user input using prompt(“Enter your age:”). If user is 18 or older , give feedback:'You are old enough to drive' but if not 18 give another feedback stating to wait for the number of years he neds to turn 18.

```sh
Enter your age: 30
Expand All @@ -289,14 +289,14 @@ isRaining
You are left with 3 years to drive.
```

1. Compare the values of myAge and yourAge using if … else. Based on the comparison log to console who is older (me or you). Use prompt(“Enter your age:”) to get the age as input.
1. Compare the values of myAge and yourAge using if … else. Based on the comparison and log the result to console stating who is older (me or you). Use prompt(“Enter your age:”) to get the age as input.

```sh
Enter your age: 30
You are 5 years older than me.
```

1. If a is greater than b return 'a is greater than b' else 'a is less than b'. Try to implement in to ways
1. If a is greater than b return 'a is greater than b' else 'a is less than b'. Try to implement it in to ways

- using if else
- ternary operator.
Expand All @@ -310,7 +310,7 @@ isRaining
4 is greater than 3
```

1. Even numbers are divisible by 2 and the remainder is zero. How do you check if a number is even or not using JavaScript?
1. Even numbers are divisible by 2 and the remainder is zero. How do you check, if a number is even or not using JavaScript?

```sh
Enter a number: 2
Expand All @@ -322,14 +322,14 @@ isRaining

### Exercises: Level 2

1. Write a code which can give grade to students according to theirs scores:
1. Write a code which can give grades to students according to theirs scores:
- 80-100, A
- 70-89, B
- 60-69, C
- 50-59, D
- 0-49, F
1. Check if the season is Autumn, Winter, Spring or Summer.
If the user input is:
If the user input is :
- September, October or November, the season is Autumn.
- December, January or February, the season is Winter.
- March, April or May, the season is Spring
Expand Down Expand Up @@ -368,6 +368,9 @@ isRaining
February has 28 days.
```

1. Write a program which tells the number of days in a month, now consider leap year.


🎉 CONGRATULATIONS ! 🎉

[<< Day 3](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/03_Day/03_booleans_operators_date.md) | [Day 5 >>](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/05_Day/05_day_arrays.md)
[<< Day 3](../03_Day_Booleans_operators_date/03_booleans_operators_date.md) | [Day 5 >>](../05_Day_Arrays/05_day_arrays.md)
6 changes: 3 additions & 3 deletions 05_Day/05_day_arrays.md → 05_Day_Arrays/05_day_arrays.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<h1> 30 Days Of JavaScript</h1>
<h1> 30 Days Of JavaScript: Arrays</h1>
<a class="header-badge" target="_blank" href="https://www.linkedin.com/in/asabeneh/">
<img src="https://img.shields.io/badge/style--5eba00.svg?label=LinkedIn&logo=linkedin&style=social">
</a>
Expand All @@ -13,7 +13,7 @@
</sub>
</div>

[<< Day 4](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/04_Day/04_day_conditionals.md) | [Day 6 >>](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/06_Day/06_day_loops.md)
[<< Day 4](../04_Day_Conditionals/04_day_Conditionals.md) | [Day 6 >>](../06_Day_Loops/06_day_loops.md)

![Day 5](../images/banners/day_1_5.png)

Expand Down Expand Up @@ -776,4 +776,4 @@ const webTechs = [

🎉 CONGRATULATIONS ! 🎉

[<< Day 4](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/04_Day/04_day_conditionals.md) | [Day 6 >>](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/06_Day/06_day_loops.md)
[<< Day 4](../04_Day_Conditionals/04_day_Conditionals.md) | [Day 6 >>](../06_Day_Loops/06_day_loops.md)
8 changes: 4 additions & 4 deletions 06_Day/06_day_loops.md → 06_Day_Loops/06_day_loops.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<h1> 30 Days Of JavaScript</h1>
<h1> 30 Days Of JavaScript: Loops</h1>
<a class="header-badge" target="_blank" href="https://www.linkedin.com/in/asabeneh/">
<img src="https://img.shields.io/badge/style--5eba00.svg?label=LinkedIn&logo=linkedin&style=social">
</a>
Expand All @@ -13,7 +13,7 @@
</sub>
</div>

[<< Day 5](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/05_Day/05_day_arrays.md) | [Day 7 >>](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/07_Day/07_day_functions.md)
[<< Day 5](../05_Day_Arrays/05_day_arrays.md) | [Day 7 >>](../07_Day_Functions/07_day_functions.md)

![Day 5](../images/banners/day_1_6.png)

Expand All @@ -34,7 +34,7 @@

## Loops

Most of the activities we do in life are full of repetitions. Imagine if I ask you to print out from 0 to 100 using console.log(). To implement this simple task it may take you 2 to 5 minutes, such kind of tedious and repetitive task can be carried out using loop.
Most of the activities we do in life are full of repetitions. Imagine if I ask you to print out from 0 to 100 using console.log(). To implement this simple task it may take you 2 to 5 minutes, such kind of tedious and repetitive task can be carried out using loop. If you prefer watching the videos, you can checkout the [video tutorials](https://www.youtube.com/channel/UCM4xOopkYiPwJqyKsSqL9mw)

In programming languages to carry out repetitive task we use different kinds of loops. The following examples are the commonly used loops in JavaScript and other programming languages.

Expand Down Expand Up @@ -478,4 +478,4 @@ for(let i = 0; i <= 5; i++){

🎉 CONGRATULATIONS ! 🎉

[<< Day 5](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/05_Day/05_day_arrays.md) | [Day 7 >>](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/07_Day/07_day_functions.md)
[<< Day 5](../05_Day_Arrays/05_day_arrays.md) | [Day 7 >>](../07_Day_Functions/07_day_functions.md)
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<h1> 30 Days Of JavaScript</h1>
<h1> 30 Days Of JavaScript: Functions</h1>
<a class="header-badge" target="_blank" href="https://www.linkedin.com/in/asabeneh/">
<img src="https://img.shields.io/badge/style--5eba00.svg?label=LinkedIn&logo=linkedin&style=social">
</a>
Expand All @@ -13,7 +13,7 @@
</sub>
</div>

[<< Day 6](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/06_Day/06_day_loops.md) | [Day 8 >>](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/08_Day/08_day_objects.md)
[<< Day 6](../06_Day_Loops/06_day_loops.md) | [Day 8 >>](../08_Day_Objects/08_day_objects.md)

![Thirty Days Of JavaScript](../images/banners/day_1_7.png)

Expand Down Expand Up @@ -703,4 +703,4 @@ It ill be covered in other time

🎉 CONGRATULATIONS ! 🎉

[<< Day 6](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/06_Day/06_day_loops.md) | [Day 8 >>](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/08_Day/08_day_objects.md)
[<< Day 6](../06_Day_Loops/06_day_loops.md) | [Day 8 >>](../08_Day_Objects/08_day_objects.md)
8 changes: 4 additions & 4 deletions 08_Day/08_day_objects.md → 08_Day_Objects/08_day_objects.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<h1> 30 Days Of JavaScript</h1>
<h1> 30 Days Of JavaScript: Objects</h1>
<a class="header-badge" target="_blank" href="https://www.linkedin.com/in/asabeneh/">
<img src="https://img.shields.io/badge/style--5eba00.svg?label=LinkedIn&logo=linkedin&style=social">
</a>
Expand All @@ -13,7 +13,7 @@
</sub>
</div>

[<< Day 7](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/07_Day/07_day_functions.md) | [Day 9 >>](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/09_Day/09_day_higher_order_functions.md)
[<< Day 7](../07_Day_Functions/07_day_functions.md) | [Day 9 >>](../09_Day_Higher_order_functions/09_day_higher_order_functions.md)

![Thirty Days Of JavaScript](../images/banners/day_1_8.png)

Expand Down Expand Up @@ -368,7 +368,7 @@ const person = {
city: 'Helsinki'
},
getPersonInfo: function() {
return `I am ${this.firstName} and I live in ${city}, ${this.country}. I am ${this.age}.`
return `I am ${this.firstName} and I live in ${this.city}, ${this.country}. I am ${this.age}.`
}
}

Expand Down Expand Up @@ -586,4 +586,4 @@ console.log(copyPerson.hasOwnProperty('score'))

🎉 CONGRATULATIONS ! 🎉

[<< Day 7](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/07_Day/07_day_functions.md) | [Day 9 >>](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/09_Day/09_day_higher_order_functions.md)
[<< Day 7](../07_Day_Functions/07_day_functions.md) | [Day 9 >>](../09_Day_Higher_order_functions/09_day_higher_order_functions.md)
Loading