I have seen a main() function in some JavaScript files I have come across. Is it the same main function as you use in other languages such as C#, C++?? If you p
main()
"Main" function has nothing different then any other function (Its just a name). It will run when called and not automatically.