Skip to content

Commit 1e73905

Browse files
author
russom
committed
Line 4, 8, 9 and 10 are deleted as dead code.
1 parent e24a1d6 commit 1e73905

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
// Find the instances of unreachable and redundant code - remove them!
22
// The sayHello function should continue to work for any reasonable input it's given.
33

4-
let testName = "Jerry";
54
const greeting = "hello";
65

76
function sayHello(greeting, name) {
8-
const greetingStr = greeting + ", " + name + "!";
97
return `${greeting}, ${name}!`;
10-
console.log(greetingStr);
118
}
129

1310
testName = "Aman";

0 commit comments

Comments
 (0)