D.R.Y, Stuck in here,


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<In what way does your code behave incorrectly? Include ALL error messages.>
I’m stuck in D.R.Y :neutral_face: “It looks like you didn’t define orangeCost”, can someone give me a solution? My code:

``` var orangecost = function(price, num_oranges) { console.log('One orange = '+price); console.log('Cost of 5 oranges = '+price*num_oranges); };

orangecost(5, 5);

<do not remove the three backticks above>

#2

orangeCost (both at definition and call of the function), Cost should be spelled with uppercase C

Also, you want to return (use the return keyword) the total cost (price * num_oranges)


#3

So, I should use “return” keyword?


#4

Among other things, yes


#5

Ok, I’ll try it. Thank you.