例 ❶ (答案:8)
function add(num1, num2) {
let a = num1 * num2;
return a
}
let a = add(2, 3);
console.log(a);
})
例 ❷ (答案:及格)
function a(num) {
if (num >= 60) {
return "及格";
} else {
return "不及格";
}
}
let denny = a(80);
console.log(denny);