Skip to content

Commit a47ff50

Browse files
committed
delete let testName = 'Jerry'
1 parent 55e8451 commit a47ff50

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎dead-code/exercise-1.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
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

98
return `${greeting}, ${name}!`;
109
};
1110

12-
testName = "Aman";
11+
let testName = "Aman";
1312

1413
const greetingMessage = sayHello(greeting, testName);
1514

0 commit comments

Comments
 (0)