30;
function divide(a, b) {
if(b == 0) {
throw 'Division by zero';
}
return a / b;
}
Output:Your program did not output anything!
Why?
I expected it to show the number 2
Did you call the function?
No, you referenced it
Обсуждают сегодня