# Keep getting stuck!

#1

var aCalculate = function orangeCost(price) {
console.log(price * 5);
}
aCalculate(6)

I keep getting the error message saying I didn't define orangeCost. Here are my instructions.

You are a creature of habit. Every week you buy 5 oranges. But orange prices keep changing!

-You want to declare a function that calculates the cost of buying 5 oranges.
-You then want to calculate the cost of the 5 all together.
-Write a function that does this called orangeCost().
-It should take a parameter that is the cost of an orange, and multiply it by 5.
-It should log the result of the multiplication to the console.
-Call the function where oranges each cost 5 dollars.

#2

aCalculate

you should call it

var orangeCost  =

down to the second point on that same line you have to get rid of the orangeCost after the function like this

var orangeCost  = function(){

Now this method is suppose to take in an argument which is the cost like this

var orangeCost  = function(cost){

then finally the last bit will be

var orangeCost  = function(cost){
consoe.log(cost*5);
}

Now we can call it by doing

console.log(orangeCost(5))