How To Run JavaScript Program in Visual Studio Code | VSCode Terminal Not Working

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
friends welcome to a new video tutorial in this video i will show you how to execute your first javascript project in your visual studio code editor must watch this video till the end for complete understanding so guys let's start to run javascript project go to extension icon and search an extension code runner just open the first extension code runner [Music] this extension will be used to run the javascript code just hit the install button to install this extension in your code editor [Music] close this tab now we are going to write a small javascript function to run this javascript function in visual studio code editor write the function keyword the name of this function is sum this function will take the two parameters x and y this function will return the sum of two numbers x plus y let n as a variable equal to call this function sum by passing two numbers 10 and eight console dot log of n this will videos to get the output of this function now just right click and select first option run code this is the error node is not recognized as an internal external command to solve this error go to google and write node js download open the first link node.js download and install the node.js installer for your windows let's wait for the download to finish our file has been downloaded just open this file and install the node.js installer in your pc just click next again next and click the install wait for this installation to finish the file has been installed successfully now press any key to continue just wait for 2 seconds and just close this window [Music] now go to your system setting your computer system settings and next go to advanced system settings now here go to environment variables and find the path variables click on the path and click only edit button you can see that the node.js file link has been updated if this part has not been updated you can get this path go to your c drive programming files and this is the node.js file just double click on this file and copy the path of this file copy this path and just paste the path here click ok ok now go to your code editor restart your videos record editor close and open the code editor again now we are going to run the javascript code just right click and select the run code button first option you can see that the output is 18. if we change the numbers and sum of 13 plus 10 is 14 again run the code and this is the output which is 14. thanks for watching [Music]
Info
Channel: HMA WebDesign
Views: 45,455
Rating: undefined out of 5
Keywords: how to run javascript program in visual studio code, how to run javascript code in vscode terminal, display javascript output in vscode, how to see javascript output in visual studio code, visual studio code how to run javascript, node is not recognized vscode terminal, run javascript vscode windows 10, vscode terminal not working, Run javascript in vscode, javascript output vscode, vscode terminal javascript, vscode terminal, vscode terminal not working javascript, vs code js
Id: bEIkw5dG-E4
Channel Id: undefined
Length: 4min 51sec (291 seconds)
Published: Sat Dec 04 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.