Skip to content

Commit fea61be

Browse files
formatted the files with prettier code format
1 parent fc7e068 commit fea61be

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

Sprint-1/destructuring/exercise-1/exercise.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const personOne = {
66

77
// Update the parameter to this function to make it work.
88
// Don't change anything else.
9-
function introduceYourself({name, age, favouriteFood}) {
9+
function introduceYourself({ name, age, favouriteFood }) {
1010
console.log(
1111
`Hello, my name is ${name}. I am ${age} years old and my favourite food is ${favouriteFood}.`
1212
);

Sprint-1/destructuring/exercise-2/exercise.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,11 @@ function gryffindorMembers(hogwarts) {
8080

8181
console.log(gryffindorMembers(hogwarts));
8282

83-
84-
8583
function petsOwners(hogwarts) {
86-
return hogwarts
87-
.filter(({ occupation, pet }) => occupation === "Teacher" && pet!== null)
84+
return hogwarts
85+
.filter(({ occupation, pet }) => occupation === "Teacher" && pet !== null)
8886
.map(({ firstName, lastName }) => `${firstName} ${lastName}`)
8987
.join("\n");
9088
}
9189

92-
console.log(petsOwners(hogwarts));
90+
console.log(petsOwners(hogwarts));

Sprint-1/destructuring/exercise-3/exercise.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ function printReceipt(order) {
3535
console.log("\nTotal: " + (total / 100).toFixed(2));
3636
}
3737

38-
printReceipt(order);
38+
printReceipt(order);

0 commit comments

Comments
 (0)