JavaScript #6


#1

var orangeCost=function(price) {
var price=5*5;
console.log(price);
};
orangeCost(5)
I keep getting "Oops, try again. Hmm, it looks like your orangeCost() function doesn't return 50 when the cost of an orange is 10."

Can't figure out what i'm missing


#2

The parameter variable, price is destroyed by this line:

    var price = 5 * 5;

The function should rightly use the parameter in the calculation.

    console.log(price * 5);