Jai Verma
Jai Verma

Reputation: 11

Why no output is shown when a code is run in visual studio code

When I click "run code" in VS Code, nothing happens. No output is shown, not even error is displayed anywhere.

enter image description here

Upvotes: 0

Views: 2435

Answers (2)

JP Navarro V.
JP Navarro V.

Reputation: 41

It worked for me changing the name of the file to .html, then after switching back to a .js file it worked for me

Upvotes: 2

Akif
Akif

Reputation: 7660

First, you have to save the file. It does not seem like that in the screenshot.

Upvotes: 1

Related Questions