File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 1+ Subproject commit 4374e4e6b862b0a110e806b6115f3f6b3c22b26a
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" ;
54const greeting = "hello" ;
5+ const testName = "Aman" ;
66
7- function sayHello ( greeting , name ) {
8- const greetingStr = greeting + ", " + name + "!" ;
7+ const sayHello = ( greeting , name ) => {
98 return `${ greeting } , ${ name } !` ;
10- console . log ( greetingStr ) ;
11- }
12-
13- testName = "Aman" ;
9+ } ;
1410
1511const greetingMessage = sayHello ( greeting , testName ) ;
1612
17- console . log ( greetingMessage ) ; // 'hello, Aman!'
13+ console . log ( greetingMessage ) ; // 'hello, Aman!'
You can’t perform that action at this time.
0 commit comments