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 bd742bc commit 799a56eCopy full SHA for 799a56e
Sprint-3/3-dead-code/exercise-1.js
@@ -5,13 +5,14 @@ let testName = "Jerry";
5
const greeting = "hello";
6
7
function sayHello(greeting, name) {
8
- const greetingStr = greeting + ", " + name + "!";
9
return `${greeting}, ${name}!`;
10
- console.log(greetingStr);
11
}
12
13
testName = "Aman";
14
15
const greetingMessage = sayHello(greeting, testName);
16
17
console.log(greetingMessage); // 'hello, Aman!'
+
+//it isn't very clear if I should change the way greeting is declared from "const"
18
+//to "let" so that any greeting can be used not just "hello"
0 commit comments