HomeTracks
Explorer···
THEEBUG
Completed0/11
Score0
JSlesson2.js×
THEEBUGlesson2.js
1
function add(a, b) {
2
return ______;
3
}
4
 
5
let result = add(3, 7);
6
console.log(result); // 10
$[system] Theebug ready. Happy coding!
Code BlocksDrag blocks into the drop zones above
4 blocks available
a + b
a - b
a * b
a / b
Game Panel
0:000 pts
Level 2 of 11Functions
0/1 slots correct
Objective
Complete the "add" function so it returns the sum of a and b (should output 10)
Expected Output
10
Debug says:
This function should ADD two numbers together! Drag the expression that represents their sum into the return slot. What operation combines two values?
Debug the Worm