File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 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 = "Jerry"; - redundant
55const greeting = "hello" ;
66
77function sayHello ( greeting , name ) {
8- const greetingStr = greeting + ", " + name + "!" ;
8+ // const greetingStr = greeting + ", " + name + "!"; - redundant
99 return `${ greeting } , ${ name } !` ;
10- console . log ( greetingStr ) ;
10+ // console.log(greetingStr); - redundant
1111}
1212
1313testName = "Aman" ;
1414
15- const greetingMessage = sayHello ( greeting , testName ) ;
15+ const greetingMessage = sayHello ( greeting , testName ) ;
1616
1717console . log ( greetingMessage ) ; // 'hello, Aman!'
You can’t perform that action at this time.
0 commit comments