Why VS doesn't give me the same result as console in DevTools?

I’m sorry if this questions is being raised but I’m really new to coding and started to have the first difficult issue and can’t figure it out. I have write a simple code like this because I have to learn the return command:

function multiplyByNineFifths (number) {
    return number *(9/5);

function getFahrenheit (celcius) {
    return multiplyByNineFifths (celcius) + 32;


but when when I want to run the code in VS it says:

[Running] node "c:\Users\Oerd Bej\Desktop\JavaScript
[Done] exited with code=0 in 0.088 seconds`

while in DevTools in console it runs perfectly and it gives me the right answer which is 59.

Please can you help me to figure it out what should I do, I have installed node.js and all the necessary plug in in VS but dont know what is wrong or what is the right question that I have to ask in order to understand it well. Every error in VS it breaks my heart

enter image description here

79 thoughts on “Why VS doesn't give me the same result as console in DevTools?”