We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23c3f17 commit cc5b4bdCopy full SHA for cc5b4bd
1 file changed
Sprint-3/3-dead-code/exercise-2.js
@@ -2,13 +2,8 @@
2
// The countAndCapitalisePets function should continue to work for any reasonable input it's given, and you shouldn't modify the pets variable.
3
4
const pets = ["parrot", "hamster", "horse", "dog", "hamster", "cat", "hamster"];
5
-const capitalisedPets = pets.map((pet) => pet.toUpperCase());
6
const petsStartingWithH = pets.filter((pet) => pet[0] === "h");
7
8
-function logPets(petsArr) {
9
- petsArr.forEach((pet) => console.log(pet));
10
-}
11
-
12
function countAndCapitalisePets(petsArr) {
13
const petCount = {};
14
0 commit comments