Cannot able to execute the below code in codeacademy console?


var orangeCost = function(price) {
    console.log("The cost of 5 oranges"+" "+price*5);  

as it shows 

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


HI this line

just remove the string

"The cost of 5 oranges"+" "+

then here


the price is 5 and not 25


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