- 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

10th Nov 2021, 6:05 AM
Babatuyi Femi john
Babatuyi Femi john - avatar
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
10th Nov 2021, 8:30 AM
Sarthak
Sarthak - avatar
+ 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.
10th Nov 2021, 12:10 PM
PanicS
PanicS - avatar