Having issues with JavaScript adding () to functions and not doing it

前端 未结 0 1781
半阙折子戏
半阙折子戏 2021-01-19 01:42

We add () to function even if it is void:

    function f() {
        console.log("Hello");
    }

But why we don\'t do the same when

相关标签:
回答
  • 消灭零回复
提交回复
热议问题