Skip to content

Commit 5808eb2

Browse files
completed-dead-code
1 parent 124ae45 commit 5808eb2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const greeting = "hello";
77
function sayHello(greeting, name) {
88
const greetingStr = greeting + ", " + name + "!";
99
return `${greeting}, ${name}!`;
10-
console.log(greetingStr);
10+
//console.log(greetingStr);
1111
}
1212

1313
testName = "Aman";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// The countAndCapitalisePets function should continue to work for any reasonable input it's given, and you shouldn't modify the pets variable.
33

44
const pets = ["parrot", "hamster", "horse", "dog", "hamster", "cat", "hamster"];
5-
const capitalisedPets = pets.map((pet) => pet.toUpperCase());
5+
//const capitalisedPets = pets.map((pet) => pet.toUpperCase());
66
const petsStartingWithH = pets.filter((pet) => pet[0] === "h");
77

88
function logPets(petsArr) {

0 commit comments

Comments
 (0)