That’s awesome! This was fun for me as well, believe it or not.

I have another question…or two.

I think I know the answer, but I’d rather double check.

It should be noted that this code will be going into block code that runs python in the background, so I’ll have to work with the company that designed this block coding on the exact way to break these functions apart.

I figure it would be good to make sure the code is written properly and works as intended before I deconstruct it to put it into the block code.

Question 1:

If one of my arguments is a constant, could I simply put the number in the function, or do I first need to assign the value to a var, let, or const and then use that assigned value as one of the arguments?

Question 2:

Since I’m calling the first function (currentCircumference) in the second one(pullDistance) would I call just the label, or do I need the parenthesis, or do I need the parenthesis with the original arguments in there as well.

for example:

Should my arguments be set up like this?

(rollHome would be tracking a sensor input that counts the number of complete rotations)

```
const startingDiameter = 93
const motorWheelCircumference = Math.PI * 88
const desiredArcLength = 30
function currentCircumference(rollHome, startingDiameter) {
if (rollHome >= 3) {
return Math.PI * (startingDiameter + ((rollHome - 2)*6));
} else {
return Math.PI * startingDiameter;
}
}
function pullDistance(desiredArcLength, currentCircumference, motorWheelCircumference) {
return (desiredArcLength / currentCircumference) * motorWheelCircumference;
}
console.log(pullDistance())
```

or like this:

```
function currentCircumference(rollHome) {
if (rollHome >= 3) {
return Math.PI * (93 + ((rollHome - 2)*6));
} else {
return Math.PI * 93;
}
}
function pullDistance(currentCircumference) {
return (30 / currentCircumference) * (Math.PI * 88);
}
console.log(pullDistance())
```

As far using a previous function as an argument in a new function, should I call it like this?

```
function pullDistance(currentCircumference) {
return (30 / currentCircumference) * (Math.PI * 88);
}
```

Like this?

```
function pullDistance(currentCircumference()) {
return (30 / currentCircumference()) * (Math.PI * 88);
}
```

or like this?

```
function pullDistance(currentCircumference(rollHome)) {
return (30 / currentCircumference(rollHome)) * (Math.PI * 88);
}
```