Skip to content

Commit 55cd9b3

Browse files
exercise-1: Remove unreachable and redundant code
1 parent 1c9c9b3 commit 55cd9b3

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎dead-code/exercise-1.js‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
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) {
87
const greetingStr = greeting + ", " + name + "!";
98
return `${greeting}, ${name}!`;
10-
// console.log(greetingStr);
119
}
1210

1311
let testName = "Aman";

0 commit comments

Comments
 (0)