Don't repeat Yourself


Hellpppp im stuck and i need to finish tons before I go back to school, also it would be great if some one knows how they can explain functions to me somehow !! but im stuck on this at the moment !!

var orangeCost = function (price) {
    var newPrice = price * 5;
    console.log("the Oranges cost" + " "+ newPrice)

thanks :slight_smile:


The course-checker expects you to use


I am also confused mine keeps saying Oops, try again. Hmm, it looks like your orangeCost() function doesn't return 25 when the cost of an orange is 5. even when I made mine with the newPrice variable


ok thank you!!! It helped me alot and it worked


Sorry , doesn't work !


Thanks . It did work !


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.