Skip to content
This repository was archived by the owner on Aug 5, 2021. It is now read-only.

Commit 8339225

Browse files
committed
MD fixes
1 parent 7b324bd commit 8339225

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

week-3/Homework/mandatory/2-exercises/exercise-1/exercise-1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ console.log(`Batman is ${firstName}, ${lastName}`);
1616
The program above will print `Batman is Bruce Wayne`. Notice how we use the `{}` characters since it is an object rather than `[]` which is used when it is an array.
1717

1818
# Exercise
19+
1920
- What is the syntax to destructure the object `personOne` in exercise-1.js?
2021
- Update the argument of the function `introduceYourself` to use destructuring on the object that gets passed in.
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
2-
In `exercise-2.js`, you have an array that contains a list of people who are at Hogwarts School of Witchcraft and Wizardry.
1+
In `exercise-2.js`, you have an array that contains a list of people who are at Hogwarts School of Witchcraft and Wizardry.
32
For each character you have the following information:
3+
44
- First Name
55
- Last Name
66
- School House
77
- Pet
88
- Occupation
99

10-
1110
# Exercise 1
11+
1212
- In `exercise-2.js` write a program that will display the names of the people who belong to the Gryffindor house.
1313
- Use array destructuring to extract the values you need out of the array.
1414

1515
## Expected result
16+
1617
```
1718
Harry Potter
1819
Ron Weasley
@@ -21,12 +22,13 @@ Minerva McGonagall
2122
Albus Dumbledore
2223
```
2324

24-
2525
# Exercise 2
26+
2627
- In `exercise-2.js` write a program that will display the names of teachers who have pets.
2728
- Use array destructuring to extract the values you need out of the array.
2829

2930
## Expected result
31+
3032
```
3133
Albus Dumbledore
3234
```

week-3/Homework/mandatory/2-exercises/exercise-3/exercise-3.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
# Exercise
2+
23
- In `exercise-3.js`, you have been provided with a takeout order. Write a program that will print out the receipt for this order.
34
- Use array destructuring to extract the values you need from the order
45
- Log each individual item to the console.
56
- Log the total cost of the order to the console.
67

78
## Expected result
9+
810
```
911
QTY ITEM TOTAL
1012
1 Hot Cakes 2.29
1113
2 Apple Pie 2.78
1214
1 Egg McMuffin 2.80
13-
1 Sausage McMuffin 3.00
15+
1 Sausage McMuffin 3.00
1416
2 Hot Coffee 2.00
1517
4 Hash Brown 1.60
1618

0 commit comments

Comments
 (0)