![]() Click the green triangle (my first image) to start debugging (or press F5) and pay attention to the. step 1: install node here are the docs for that. So, to run javascript on the machine rather than the browser you need to install node. NameProgram.js console.log("Welcome to this awesome software that can tell you your own name!") Ĭonsole. Now when you click on the Debug menu (the bug > button) on the side panel (or press F5 ), Youl have a Node: Current File as a run time dropdown option that will execute your JS via Node, and display the results in the attached VSC terminal. Visual Studio Code has very little to do with this - though it does offer a terminal window for your convenience, I personally always use the linux terminal. so write your script let's say something like: Prompt() ( docs)would get you the name prompt and store the input as the script is running in the terminal. Now all you need to do is write your script and then run it. Visual Studio Code is the most popular free code editor among JavaScript developers around the world according to the State of JS 2020 survey.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |