I'm having trouble, would you please help me as soon as possible?


#1

Here is what I have:

var orangeCost = function (price) {
var orangeCost = price * 5
console.log ("your orange cost is..." + price * 5);
};
orangeCost(5)

in the console, it says this:

your orange cost is...25
your orange cost is...25

and it says my problem is:

Oops, try again. Hmm, it looks like your orangeCost() function doesn't return 25 when the cost of an orange is 5.

I have no idea what is going on, please help! Thank you!


#2

This:

var orangeCost = function (price) {
var orangeCost = price * 5;
console.log ("your orange cost is..." + price * 5);
};

Should be this:

var orangeCost = function (price) {
return price * 5;
};

They want you to return the amount of oranges multiplied by five.


#3

Thank you, I'll try it.