Skip to content

Commit f45f882

Browse files
this function logPets(petsArr) { ... }:was declared but never used
1 parent cf7fa8e commit f45f882

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

Sprint-3/3-dead-code/exercise-2.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
const pets = ["parrot", "hamster", "horse", "dog", "hamster", "cat", "hamster"];
55
const petsStartingWithH = pets.filter((pet) => pet[0] === "h");
66

7-
function logPets(petsArr) {
8-
petsArr.forEach((pet) => console.log(pet));
9-
}
107

118
function countAndCapitalisePets(petsArr) {
129
const petCount = {};

0 commit comments

Comments
 (0)