// Declare a function where the formal parameter executes some operation.
// It will display the error "Unexpected token ++".
function log(num++) {
return num;
}
// Declare a normal function.
function logNormal(num) {
return num;
}
// Calls the logNormal function, and the parameter deliverd will execute some operation.
var a = 5;
logNormal(a++); // 5
logNormal(a); // 6
logNormal(++a); // 7
现在问题来了,为什么形参不能执行操作呢?