0

I downloaded node.js and code runner on vs code. The first time I ran the code there was an output. But when I created a new file and tried to run this piece of code in vs code, there wasn't any output. Normally, there should be an output of "1euro" but there is nothing. What's the problem?picture of how it looks like in vs code

var preis=(3);
var rabatt=(2);
var result=(preis-rabatt);
console.log(result+"euro");

3
  • 1
    You didn't save the file. The big white dot in the tab shows that. Commented Apr 14, 2022 at 12:50
  • 1
    I dont know if that is the issue, but looking at your vs code you are using comma instead of a dot to declare the 0.5 ... Commented Apr 14, 2022 at 12:53
  • 2
    Check debug console Commented Apr 14, 2022 at 12:55

2 Answers 2

1

Your code is working for me.. I suggest you to do the following,

  1. Save the file.
  2. Close the VS code app and reopen it again and run it..
Sign up to request clarification or add additional context in comments.

Comments

1

i had the same issue it has been resolved by saving the file!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.