+ 1
what is the bug of the following program?
function multiply (a,b) { return a*b }
2 Answers
+ 3
A semicolone is required after your "return"
return a*b; <- there :D
+ 3
You're also missing the $ before all of the variables.
function multiply($a, $b) {
return $a * $b;
}