JavaScript #6


var orangeCost=function(price) {
var price=5*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


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);