Skip to content

Commit cc3d8b6

Browse files
Removing dead code from excerise-1.js
1 parent 3372770 commit cc3d8b6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
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.
3-
4-
let testName = "Jerry";
53
const greeting = "hello";
64

75
function sayHello(greeting, name) {
8-
const greetingStr = greeting + ", " + name + "!";
96
return `${greeting}, ${name}!`;
10-
console.log(greetingStr);
117
}
128

139
testName = "Aman";

0 commit comments

Comments
 (0)