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: this code will give an error because the funcion does not return any value and calling it within the consle.log will print undefined.
3
3
4
4
functionsum(a,b){
5
5
return;
@@ -8,6 +8,10 @@ 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 sum a+b in line 6 should precede the return statement inorder to return the value.
0 commit comments