OrangeCost not defined


This is driving me crazy. What am I missing?

var OrangeCost = function (price)
console.log(5 * price);

25 comes up on the console, but I get this message:

Oops, try again. It looks like you didn't define orangeCost.


Maybe write orangeCost with a lower case "o". After you press submit there are several tests run on your code and if these tests expect a name orangeCost they get confused if they see OrangeCost as javaScript is case-sensitive. Anyway the function seems to be ok so good job.


You were right, that was the issue.