Skip to content

Commit 0902699

Browse files
removed the redundant varieable greetingStr which was created but only used after return statement it was completely redundant , never used
1 parent 83cd71b commit 0902699

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let testName = "Jerry";
55
const greeting = "hello";
66

77
function sayHello(greeting, name) {
8-
const greetingStr = greeting + ", " + name + "!";
8+
99
return `${greeting}, ${name}!`;
1010

1111
}

0 commit comments

Comments
 (0)