Cant Find Error


#1


https://www.codecademy.com/en/courses/javascript-beginner-en-6LzGd/1/1?curriculum_id=506324b3a7dffd00020bf661


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


#2

Hi your function should like that

var orangeCost = function() {

}

the as argument you could use cost like that

var orangeCost = function(cost) {

}

then this part of the instruction

It should take a parameter that is the cost of an orange, and multiply it by 5.

so inside your function return..

return cost * 5

then you should call it

orangeCost(5);

#3

The function is to be named, orangeCost

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

var orangeCost(price) { ... };

Note that it takes one parameter, price which is provided by the user. There should be a constant in the function, 5 which is the fixed number of oranges purchased each week.

    console.log(price * 5);

Now your call to the function will execute as expected.

    orangeCost(5);    // 25