Don't repeat yourself


#1

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

what did I do wrong?


#2

The ornageCost function takes an argument which s the price of the orange so in your code you must multiply the price by 5. secondly you have

var orangeCost = function(price)
{
    var val = price * 5; // multiply by price instead
    console.log(val); // print val instead
};
orangeCost(5);