Skip to content

Commit e3b022f

Browse files
committed
day 16
1 parent c51058b commit e3b022f

File tree

13 files changed

+2641
-22
lines changed

13 files changed

+2641
-22
lines changed

β€Ž.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ day9.md
1414
day10.md
1515
01_02_03_days_backup.md
1616
test.md
17-
18-
16_Day
1917
17_Day
2018
18_Day
2119
19_Day

β€Ž10_Day/10_day_Set_and_Map.md

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ Norway Oslo
388388
## Exercises
389389

390390
### Exercises:Level 1
391+
391392
```js
392393
const a = {4, 5, 8, 9}
393394
const b = {3, 4, 5, 7}
@@ -409,32 +410,35 @@ const countries = ['Finland', 'Sweden', 'Norway']
409410

410411
### Exercises:Level 3
411412

413+
1. How many languages are there in the countries object file.
414+
412415
1. \*\*\* Use the countries data to find the 10 most spoken languages:
413416

414417
````js
415418
// Your output should look like this
416419
console.log(mostSpokenLanguages(countries, 10))
417-
[(91, 'English'),
418-
(45, 'French'),
419-
(25, 'Arabic'),
420-
(24, 'Spanish'),
421-
(9, 'Russian'),
422-
(9, 'Portuguese'),
423-
(8, 'Dutch'),
424-
(7, 'German'),
425-
(5, 'Chinese'),
426-
(4, 'Swahili'),
427-
(4, 'Serbian')]
420+
[
421+
{'English':91},
422+
{'French':45},
423+
{'Arabic':25},
424+
{'Spanish':24},
425+
{'Russian':9},
426+
{'Portuguese':9},
427+
{'Dutch':8},
428+
{'German':7},
429+
{'Chinese':5},
430+
{'Swahili':4},
431+
{'Serbian':4}]
428432

429433
// Your output should look like this
430434
console.log(mostSpokenLanguages(countries, 3))
431-
[
432-
(91, 'English'),
433-
(45, 'French'),
434-
(25, 'Arabic')
435-
]```
436435

437-
````
436+
[
437+
{'English':91},
438+
{'French':45},
439+
{'Arabic':25}
440+
]
441+
````
438442

439443
πŸŽ‰ CONGRATULATIONS ! πŸŽ‰
440444

β€Ž15_Day/15_day_classes.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
</div>
1616

17-
[<< Day 14](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/14_Day/14_day_error_handling.md) | [Day 16>>](#)
17+
[<< Day 14](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/14_Day/14_day_error_handling.md) | [Day 16>>](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/16_Day/16_day_json.md)
1818

1919
![Thirty Days Of JavaScript](../images/banners/day_1_15.png)
2020

@@ -35,6 +35,7 @@
3535
- [Exercises Level 1](#exercises-level-1)
3636
- [Exercises Level 2](#exercises-level-2)
3737
- [Exercises Level 3](#exercises-level-3)
38+
3839
# Day 15
3940

4041
## Classes
@@ -706,8 +707,8 @@ Standard Deviation: 4.2
706707
Frequency Distribution: [(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)]
707708
```
708709
709-
1. Create a class called PersonAccount. It has firstname, lastname, incomes, expenses properties and it has totalIncome, totalExpense, accountInfo,addIncome, addExpense and accountBalance methods. Incomes is a set of incomes and its description and expenses is also a set of expenses and its description.
710+
1. Create a class called PersonAccount. It has firstname, lastname, incomes, expenses properties and it has totalIncome, totalExpense, accountInfo,addIncome, addExpense and accountBalance methods. Incomes is a set of incomes and its description and expenses is also a set of expenses and its description.
710711
711712
πŸŽ‰ CONGRATULATIONS ! πŸŽ‰
712713
713-
[<< Day 14](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/14_Day/14_day_error_handling.md) | [Day 16>>](#)
714+
[<< Day 14](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/14_Day/14_day_error_handling.md) | [Day 16>>](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/16_Day/16_day_json.md)

0 commit comments

Comments
Β (0)