Skip to content

Commit 197be89

Browse files
completed-dead-code
1 parent a75974d commit 197be89

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ function countAndCapitalisePets(petsArr) {
1414

1515
petsArr.forEach((pet) => {
1616
const capitalisedPet = pet.toUpperCase();
17-
if (petCount[capitalisedPet]) {
18-
petCount[capitalisedPet] += 1;
17+
// if (petCount[capitalisedPet]) {
18+
// petCount[capitalisedPet] += 1;
1919
} else {
2020
petCount[capitalisedPet] = 1;
2121
}

0 commit comments

Comments
 (0)