I dont know how to remove this error


#1



https://www.codecademy.com/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 result=price*5;
    console.log("Price is:"+" "+result+" "+"dollars.");
};
orangeCost(5);


#2

@coresurfer45467,
It is only expecting you to use

console.log(result);

#3

your function is logging more then just 25. Only log result to the console


#4

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