Gives the correct output and works fine, but gives an error message for some reason


#1


6. Don't Repeat Yourself (D.R.Y)


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


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



fiveOrangeCost(5);


#2

your function is called fiveOrangeCost, it should be orangeCost, it seems the exercise doesn't give you the freedom to name the function to what you want.


#3

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