Skip to content

Commit e7eef76

Browse files
committed
delete all comments from code
1 parent 70403c5 commit e7eef76

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎dead-code/exercise-2.js‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Remove the unused code that does not contribute to the final console log
2-
// The countAndCapitalisePets function should continue to work for any reasonable input it's given, and you shouldn't modify the pets variable.
3-
41
const pets = ["parrot", "hamster", "horse", "dog", "hamster", "cat", "hamster"];
52
const petsStartingWithH = pets.filter((pet) => pet[0] === "h");
63

@@ -20,4 +17,4 @@ function countAndCapitalisePets(petsArr) {
2017

2118
const countedPetsStartingWithH = countAndCapitalisePets(petsStartingWithH);
2219

23-
console.log(countedPetsStartingWithH); // { 'HAMSTER': 3, 'HORSE': 1 } <- Final console log
20+
console.log(countedPetsStartingWithH);

0 commit comments

Comments
 (0)