You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sprint-2/2-mandatory-debug/1.js
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ console.log(`The sum of 10 and 32 is ${sum(10, 32)}`);
11
11
12
12
// =============> write your explanation here
13
13
// The function sum defines that a+b must be added together but before that return is used with no argument defined and we we exit the function immediately when it is called on line 10 the function returns to the string undefined.
14
+
// Another issue is that a + b is placed after return so that line is unreachable and will never run.
0 commit comments