D.R.Y, Stuck in here,


#1



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);


#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.