main() function in JavaScript?

杀马特。学长 韩版系。学妹 提交于 2019-12-01 02:53:17

No, main is not the same in JavaScript as in C languages. It's just another function, but the original programmer is probably using the name as a convention to indicate where the code should start running.

"Main" function has nothing different then any other function (Its just a name). It will run when called and not automatically.

It is just a name given to a function, there isn't such a thing as C "main" in javascript.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!