-1

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

enter image description here

1
  • When you mean "click run code", do you mean you press the play button on the upper right corner? Or should I say, did you run the code using the "Code Runner" extension? Commented Oct 21, 2020 at 11:11

2 Answers 2

2

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

Sign up to request clarification or add additional context in comments.

Comments

1

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

1 Comment

CTRL+S is a quick way to do this on Windows. CMD+S for Mac.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.