File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ *
13// Find the instances of unreachable and redundant code - remove them!
24// The sayHello function should continue to work for any reasonable input it's given.
35
@@ -15,3 +17,22 @@ testName = "Aman";
1517const greetingMessage = sayHello(greeting, testName);
1618
1719console.log(greetingMessage); // 'hello, Aman!'
20+ *
21+ */
22+
23+ // Find the instances of unreachable and redundant code - remove them!
24+ // The sayHello function should continue to work for any reasonable input it's given.
25+
26+ let testName = "Jerry" ;
27+ const greeting = "hello" ;
28+
29+ function sayHello ( greeting , name ) {
30+ return `${ greeting } , ${ name } !` ;
31+ }
32+
33+ testName = "Aman" ;
34+
35+ const greetingMessage = sayHello ( greeting , testName ) ;
36+
37+ console . log ( greetingMessage ) ; // 'hello, Aman!'
38+
You can’t perform that action at this time.
0 commit comments