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
// =============> write your prediction here : A syntax error for the semicolon after return.
3
3
4
4
functionsum(a,b){
5
5
return;
@@ -8,6 +8,11 @@ function sum(a, b) {
8
8
9
9
console.log(`The sum of 10 and 32 is ${sum(10,32)}`);
10
10
11
-
// =============> write your explanation here
11
+
// =============> write your explanation here : The semicolon after return at end of the statement. So there will be no value returned from the function.
12
+
12
13
// Finally, correct the code to fix the problem
13
14
// =============> write your new code here
15
+
functionsum(a,b){
16
+
returna+b;
17
+
}
18
+
console.log(`The sum of 10 and 32 is ${sum(10,32)}`);
0 commit comments