What am I doing wrong? Lesson 4 ex. 6


#1


https://www.codecademy.com/en/courses/javascript-beginner-en-6LzGd/1/1?curriculum_id=506324b3a7dffd00020bf661


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);
};
orangeCost("5");


#2

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)


#3

thank you so much it works now