How to Run or Debug JavaScript in Sublime text ? Last Updated : 21 Nov, 2023 Summarize Comments Improve Suggest changes Share Like Article Like Report Freeware text and source code editor Sublime Text is available for users of Windows, macOS, and Linux. Its features can be expanded with plugins, which are developed and maintained under free software licenses by the local community, and users can customize it with themes. The editor includes an easy-to-use interface and provides features for programmers, including support for regular expressions in search and replace, code folding, an adjustable syntax highlighting function, a terminal output window, and many more. Steps for running or debugging JavaScript in Sublime text:Step 1: Download and install Node.js in your system. (If you have installed it, move to the next step) Step 2: Open the Sublime text click on Tools>Build System> new Build System.Step 3: A screen will appear as follows: Step 4: now replace the following content as given below: {"cmd":["node", "$file"], "selector": "main.js"} Step 5: Save the file as "JavaScript.sublime-build" in default user folder or else get into File>Save or CTRL + S. Step 6: Close the file and again Navigate to Tools> Build System and now you can see the JavaScript and select it.Step 7: Now you can run and debug the JavaScript. So test it we create a file named text.js. Here are the results. You can also use multiple packages and tools based on your preferences and the needs of your project, so feel free to look into different possibilities to discover the one that best suits you. Comment More infoAdvertise with us Next Article How to enable JavaScript in Windows ? P priyankaarikatla696 Follow Improve Article Tags : JavaScript Web Technologies Geeks Premier League Geeks Premier League 2023 Similar Reads How to Print a Picture in a Sublime Text File ? The Sublime Text is a versatile and powerful text editor renowned for its simplicity, speed, and extensive customization options. While it's primarily used for editing code it also supports various file formats including text files with the embedded images. However, Sublime Text itself doesn't have 2 min read How to Run JavaScript in Visual Studio? To run JavaScript in Visual Studio, you can either use Node.js in the Terminal or the Code Runner extension. Both methods allow you to execute JavaScript code easily and efficiently within the Visual Studio environment.Using Node.js in TerminalNode.js is a JavaScript runtime that allows you to execu 2 min read How to debug JavaScript File ? Debugging is essential because there are many errors that are not giving any kind of messages so to find out that we debug the code and find out the missing point. Example 1: Â Using console.log() Method In this, we can find out the error by consoling the code in various places. Using a console is on 2 min read How to enable JavaScript in Windows ? Whenever you are browsing through some websites, you can observe that some of the blocks are not displayed properly. Instead of behaving dynamic, they are just standstill like any other static page which is very undesirable to the user. This behavior is mainly because of not enabling JavaScript on y 2 min read How do you Run JavaScript Through the Terminal? Running JavaScript through the terminal can be done in a few different ways, depending on your environment. Here are the most common methods:Note- First you need to install Node.js to run JavaScript through the terminal1. Running JavaScript Directly in the Terminal (REPL Mode)Once Node.js is install 2 min read How to run JavaScript in Chrome Browser ? Javascript is a highly flexible scripting language that enables developers to incorporate interactive elements into web pages. Web development could not be imagined without it as one of the most widely used methods to implement JavaScript is via web browsers. One of the very popular web browsers is 5 min read Like