About 50 results
Open links in new tab
  1. node.js - Run JavaScript in Visual Studio Code - Stack Overflow

    Aug 3, 2015 · Is there a way to execute JavaScript and display the results using Visual Studio Code? For example, a script file containing: console.log('hello world'); I assume that Node.js would be …

  2. How do I run JavaScript code in Visual Studio Code?

    Mar 3, 2021 · Create a new folder and open it in VS Code. then write the javascript code and name it with extension .js After completing the code save the changes that you made

  3. How do I debug HTML and JavaScript together in VSCode (Visual …

    Jun 26, 2015 · 66 I want to run and debug an html page with a javascript file in a mini website when I hit F5. How do I configure VSCode to open the html page in the browser and then allow me to set …

  4. Is there a way to run javascript in VSCode without Node.js?

    Sep 16, 2023 · The short answer would be no (in VS Code). Javascript needs a runtime environment to be executed, like Node JS, or V8 engine in Chrome Browser. Alternative solutions: Using online IDE …

  5. How to run JavaScript code in VSCode's terminal? [duplicate]

    Feb 26, 2020 · I want to test small snippets of JavaScript code in VSCode's terminal before inserting them in my project. I want something similar to Chrome's Devtools console.

  6. Debug single javascript file in “Visual Studio Code”

    Nov 7, 2017 · 5 You can run your current file in a Node environment without creating a launch.json. With the file you want to debug open, go to the debugger panel, click the green arrow and choose Node …

  7. How to run html & javascript in VS Code - Stack Overflow

    Dec 28, 2020 · 4 I have the following code. How do I run this in VS Code with the debugger. I installed and tried live-server but maybe not doing it correctly. index.html

  8. No output when I run a javascript code in vs code - Stack Overflow

    Apr 14, 2022 · I downloaded node.js and code runner on vs code. The first time I ran the code there was an output. But when I created a new file and tried to run this piece of code in vs code, there wasn't …

  9. Beginner having trouble running Javascript on Visual Studio Code

    Nov 8, 2022 · Typically, when using VS Code, you would pick the Open Folder option from the File menu to work within your project's root directory (i.e. Coding Practice) which will provide you with a …

  10. How do you run JavaScript script through the Terminal?

    Dec 16, 2011 · For instance, if you were to run a Python script you would type python filename.py. Or, if you wanted to run a C program, make filename and then ./filename. How do you do this with .js files?