Skip to content

Commit b55668e

Browse files
committed
Removed the olde code
1 parent 84a56ad commit b55668e

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

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

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
1-
/**
2-
* Original code:
3-
*
4-
// Find the instances of unreachable and redundant code - remove them!
5-
// The sayHello function should continue to work for any reasonable input it's given.
6-
7-
let testName = "Jerry";
8-
const greeting = "hello";
9-
10-
function sayHello(greeting, name) {
11-
const greetingStr = greeting + ", " + name + "!";
12-
return `${greeting}, ${name}!`;
13-
console.log(greetingStr);
14-
}
15-
16-
testName = "Aman";
17-
18-
const greetingMessage = sayHello(greeting, testName);
19-
20-
console.log(greetingMessage); // 'hello, Aman!'
21-
*
22-
* End of code
23-
*/
241

252
// The sayHello function should continue to work for any reasonable input it's given.
263

0 commit comments

Comments
 (0)