var orange= function orangeCost(price)
var cost=price*5;
return (cost);


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

please help me

Replace this line with your code.


it says to log the result to the console.


Wrong syntax, should be:

var orangeCost = function (price) {
   var cost=price*5;
   return (cost); // here you need to log variable cost


@denys.matsevych explained it better


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