Dry help!


#1

Hello everyone im a newbie and in this exercise i actually passed but something is fishy and i dont think its right so here is my code i made a logical mistake can you tell explain it in a simple way please? Thanks in advance!

var orangeCost=function(orange){
console.log(5*orange);
};
orangeCost(5)

this worked but i think it needs a logic fix


#2

What is the error you are expecting? Was there something specific you wanted the code to do?


#3

**function orangeCost(price) {
console.log(price*5);
}

orangeCost(25);**


#4

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