There was an error while loading. Please reload this page.
1 parent b31a586 commit 54f9242Copy full SHA for 54f9242
1 file changed
Sprint-3/3-dead-code/exercise-1.js
@@ -5,9 +5,11 @@ let testName = "Jerry";
5
const greeting = "hello";
6
7
function sayHello(greeting, name) {
8
- const greetingStr = greeting + ", " + name + "!";
+ //const greetingStr = greeting + ", " + name + "!";
9
+ // - removing this line as this is redundant code and duplicated inside the return
10
return `${greeting}, ${name}!`;
- console.log(greetingStr);
11
+ //console.log(greetingStr);
12
+ // - removing this line because after return the console.log will not execute
13
}
14
15
testName = "Aman";
0 commit comments