Why is this not working?


#1



//why does this not work everytime I try it, it tells me "ReferenceError: orangecost is not defined"

 var orangeCost = function (price) {
     console.log(price * 5);
};

orangecost(45)


#2

i think you need to call it orangeCost(45) for it to work. I'm a beginer in this too, so forgive me if this isnt the solution!


#3

Actually it worked. I cant imagine how stupid of me to write it not in case sensitive. Anyway thank you very much