【发布时间】:2022-12-27 12:07:44
【问题描述】:
How come I can say:
var myFunction = function() {
setTimeout(myFunction, 1000);
}
myFunction();
Why does the function call in the setTimeout not require parentheses, but the last line does?
【问题讨论】:
标签: javascript