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 a75974d commit 197be89Copy full SHA for 197be89
Sprint-3/3-dead-code/exercise-1.js
@@ -7,7 +7,7 @@ const greeting = "hello";
7
function sayHello(greeting, name) {
8
const greetingStr = greeting + ", " + name + "!";
9
return `${greeting}, ${name}!`;
10
- console.log(greetingStr);
+ //console.log(greetingStr);
11
}
12
13
testName = "Aman";
Sprint-3/3-dead-code/exercise-2.js
@@ -14,8 +14,8 @@ function countAndCapitalisePets(petsArr) {
14
15
petsArr.forEach((pet) => {
16
const capitalisedPet = pet.toUpperCase();
17
- if (petCount[capitalisedPet]) {
18
- petCount[capitalisedPet] += 1;
+ // if (petCount[capitalisedPet]) {
+ // petCount[capitalisedPet] += 1;
19
} else {
20
petCount[capitalisedPet] = 1;
21
0 commit comments