6. (D.R.Y.) it looks like your orangeCost() function doesn't return 25 when the cost of an orange is 5


#1

Can any one tell the mistake in this code
I am getting an error message stating that

"Oops, try again. Hmm, it looks like your orangeCost() function doesn't return 25 when the cost of an orange is 5."

var orangeCost = function (price)
{
var val = price * 5;
console.log("The value of five oranges is :" + " " + val);
};
orangeCost(5);


Hello help on 6. Don't Repeat Yourself (D.R.Y)
#2

I don't know if this is 100% correct as I am fairly new, but I did have a similar issue. The lesson did not flow too well with the other material so I tried to add to the info learned to keep up the pace.

Try just doing the flat math, take out 'The value of five oranges is :" + " " +'. The way the system is set up, it will only read exactly what they wanted you to put, everything else is considered an error. Kind of sucks. but that should resolve your issue. If not, I apologize, I am new to this.