My code keeps returning "nan" instead of "25"


#1



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


#2

pass 5 as argument when calling the function:

orangeCost(5);

to satisfy the function parameter (price)


#3

it is now all sorted thank you