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


I get the correct answer 25, but it appears twice. The resonse from codeacademy is Oops, try again. Hmm, it looks like your orangeCost() function doesn't return 25 when the cost of an orange is 5.


Please include a link to the lesson, your code, and any errors you're getting.



Replace console.log with a return you only need it once so you use return like this

It should be fixed, I was struggling on this for a bit too.

The code don't runs, please help

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.