
- Instructions
- Solution 🔒
Basic multiplication
Complete the function multiply
such that it returns the product of a and b.
Solution will unlock after 4:50 min
1
2
3
4
5
6
7
8
9
10
11
12
//Write a function named multiply
//should take in 2 numbers a and b as parameters
//return their product
function multiply(a, b) {
//edit code here
}
// Do not modify
console.log(multiply(3, 3)); // 9
console.log(multiply(2, 2)); // 4
console.log(multiply(1, 1)); // 1
Enter to Rename, Shift+Enter to Preview