# Problem:

Alright take a look at example 1:

## Example 1:

var orangeCost = function(cost){

This line is establishing a function "orangeCost" with *one* parameter of "cost".

Meaning when you call this function you will put in one parameter for the function to work with.

However, in example two, you can see you are passing the orangeCost function two parameters.

## Example 2:

orangeCost(amount, 5);

The function is looking at this and saying.. "What the poop do I do with this second parameter??"

# Solution:

You have to take out one of the parameters that you're passing the function.

```
amount = 5;
orangeCost(amount);
```

or you can simplify it to just

`orangeCost(5);`

Either way will work, but not both at the same time.

# Extra information:

Functions have parameters that can be separated in the function as follows:

`var example = function(parameter, parameter2, parameter3, etc...) {...}`

If you wanted to have more parameters in a function you can add them. But it's most efficient to use only the parameters you have distinguished to the function for maximum efficiency.