OrangeCost not defined


#1

This is driving me crazy. What am I missing?

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

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

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


#2

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.


#3

You were right, that was the issue.

Thanks!!