We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84a56ad commit b55668eCopy full SHA for b55668e
Sprint-3/3-dead-code/exercise-1.js
@@ -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
-*/
24
25
// The sayHello function should continue to work for any reasonable input it's given.
26
0 commit comments