Why is this not working?


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



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!


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