- 1
Visual studio JS code
I'm running my JS code on visual studio, math operators.. Instead of displaying the result, the browser is displaying the whole codes
2 Respostas
+ 2
You might have opened the JS file on Chrome. You'll need to create HTML page and link the JS file to that HTML document using script tag. After that, you open that HTML document in chrome.
And the output logs is in console panel, which can be opened by pressing key F12 while the document is focused
+ 1
There is also some plugins for vs code to open js files in terminal, without linking to html. This is good if you practice js fundamentals.