File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
Sprint-2/2-mandatory-debug Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 11// Predict and explain first...
2- // =============> The sum of 10 and 32 is undefined
2+ // =============> write your prediction here
33
44function sum ( a , b ) {
55 return ;
@@ -8,13 +8,6 @@ function sum(a, b) {
88
99console . log ( `The sum of 10 and 32 is ${ sum ( 10 , 32 ) } ` ) ;
1010
11- // =============> the function sum returns Nul because it's straight followed by semicolon thate ends the statement
12- // also the statement a + b is in new line
11+ // =============> write your explanation here
1312// Finally, correct the code to fix the problem
14- // =============> my new code
15- function sum ( a , b ) {
16- return a + b ;
17- }
18-
19- console . log ( `The sum of 10 and 32 is ${ sum ( 10 , 32 ) } ` ) ;
20-
13+ // =============> write your new code here
You can’t perform that action at this time.
0 commit comments