search

Home  >  Q&A  >  body text

There is no main function in javascript

There is no main function in javascript. The main function is often used in Java and C languages. It is also called the main function and is required to have a return value. Returning 0 means that the program is successfully executed normally, and returning a non-0 value means that the program ends abnormally; but this function does not exist in JavaScript.

手机用户757625696手机用户7576256961031 days ago1214

reply all(0)I'll reply

No reply
  • Cancelreply