Skip to content

Commit 97ce7c6

Browse files
committed
Birmingham | 26-ITP-May | Gabriel Pawuoi | Sprint 3 | Dead code
1 parent b31a586 commit 97ce7c6

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
// Find the instances of unreachable and redundant code - remove them!
2-
// The sayHello function should continue to work for any reasonable input it's given.
3-
41
let testName = "Jerry";
52
const greeting = "hello";
63

74
function sayHello(greeting, name) {
8-
const greetingStr = greeting + ", " + name + "!";
95
return `${greeting}, ${name}!`;
10-
console.log(greetingStr);
116
}
127

138
testName = "Aman";

0 commit comments

Comments
 (0)