Skip to content

Commit a19ef21

Browse files
committed
removed all of the dead code
1 parent 79a7e7b commit a19ef21

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
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-
const greeting = "hello";
5-
const testName = "Aman";
6-
74
function sayHello(greeting, name) {
85
return `${greeting}, ${name}!`;
96
}
107

8+
const testName = "Aman";
9+
const greeting = "hello";
10+
1111
const greetingMessage = sayHello(greeting, testName);
1212

1313
console.log(greetingMessage); // 'hello, Aman!'

0 commit comments

Comments
 (0)