What am I doing wrong? Lesson 4 ex. 6



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 cost of 5 oranges is " + val);


when you call the function, pass the argument as integer, not as string

You should only log the value, not a string + value (see instructions)


thank you so much it works now