About 144,000,000 results
Open links in new tab
  1. Why doesn't JavaScript need a main() function? - Stack Overflow

    Jan 26, 2012 · JavaScript is event-driven, the program written in JavaScript doesn't have a start and an end. You can compare it to any desktop UI toolkit, where you handle button clicks and …

  2. JavaScript - MDN Web Docs

    Oct 2, 2025 · JavaScript (JS) is a lightweight interpreted (or just-in-time compiled) programming language with first-class functions. While it is most well-known as the scripting language for …

  3. JavaScript Tutorial - W3Schools

    JavaScript is easy to learn. This tutorial covers everything from basic JavaScript up to the latest 2025 version. Start learning JavaScript now » With our Try it Yourself editor, you can edit the …

  4. Can i use a main function? : r/learnjavascript - Reddit

    Apr 8, 2023 · I’ve never been a huge fan of forcing a main function in JavaScript. You have to actually add code to make it function properly and it’s actually possible to make your code …

  5. Main function in Node.js - mathieularose.com

    Unlike most other programming languages or runtime environments, Node.js doesn't have a built-in special main function to designate the entry point of a program.

  6. What Is the JavaScript Main Thread? - JavaScript in Plain English

    Jun 9, 2025 · What Is the JavaScript Main Thread? In a web browser, JavaScript runs on a single thread, commonly referred to as the main thread. This thread is responsible for: Running your …

  7. main () function in JavaScript? - Stack Overflow

    Dec 25, 2011 · 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 …

  8. Is there a "global function" or a "main function" in Javascript?

    There's no concept of a main entry point in JS, but you should define one in your code. Javascript does not have a main function. It starts at the top and works it's way down to the bottom. In …

  9. Introduction - JavaScript | MDN - MDN Web Docs

    Jul 19, 2025 · This chapter introduces JavaScript and discusses some of its fundamental concepts.

  10. JS | Main JS is an easy-to-use, modern, lightweight and portable ...

    Main JS is an easy-to-use, modern, lightweight and portable website JavaScript framework. Unlock your next javascript project with Main JS; an async headless framework and serverless …