Skip to content

Commit 1043058

Browse files
authored
Remove unused loops and console logs from exercise.js
1 parent 641609b commit 1043058

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,3 @@ let hogwarts = [
7070
occupation: "Teacher",
7171
},
7272
];
73-
74-
for (const { firstName, lastName, house } of hogwarts) {
75-
if (house === "Gryffindor") {
76-
console.log(`${firstName} ${lastName}`);
77-
}
78-
}
79-
console.log("Task1");
80-
81-
for (const { firstName, lastName, occupation, pet } of hogwarts) {
82-
if (occupation === "Teacher" && pet) {
83-
console.log(`${firstName} ${lastName}`);
84-
}
85-
}
86-
console.log("task2");

0 commit comments

Comments
 (0)