'No output when I run a javascript code in vs code

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");


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source