Skip to content

Commit e53ca25

Browse files
Refactor testName variable in exercise-1.js
Updated testName variable to use 'Aman' instead of 'Jerry'.
1 parent 55d992a commit e53ca25

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
// Find the instances of unreachable and redundant code - remove them!
22
// The sayHello function should continue to work for any reasonable input it's given.
33

4-
let testName = "Jerry";
4+
let testName = "Aman";
55
const greeting = "hello";
66

77
function sayHello(greeting, name) {
88
return `${greeting}, ${name}!`;
99
}
1010

11-
testName = "Aman";
1211

1312
const greetingMessage = sayHello(greeting, testName);
1413

0 commit comments

Comments
 (0)