# Is there any other way to do a return statement other than discussed in the above thread?

Continuing the discussion from freeCodeCamp Challenge Guide: Return a Value from a Function with Return:

function timesFive (bum) { return bum * 5;}

I was specifically wondering if num is a reference word.

I am not sharing this as the forum as I view the problem solving skills required as everyones own journey :-)

Is the short answer: because this is the way the language works?

As you notice, I changed num to bum and still got the challenge correct.

Yes bum is just what youâre calling the input you give to the function. When you invoke the function you are most certainly passing some value into the function. The function uses your declaration to see what you want to do with the input and then uses return as a way to output whatever you did to the data. You can call it whatever you want which is why whether it is a num or a bum it works.

No.

Yes.

You can give it (almost) any name you like. You can then use that name to access what is passed to the function.

So if you call `timesFive(3)`, it will give `bum` the value of 3.

Can you write what your example would output, the written code? If you donât mind to illustrateâŚ

Running `timesFive(3)` is the same as running the inner part of your function with `bum = 3`. Since the only line of code is: `return bum * 5;` which is: `return 3 * 5;` it will return 15.

Here is the full code:

``````function minusSeven(num) {
return num - 7;
}

// Only change code below this line

function timesFive (bum) { return bum * 5;}
``````

Where are you getting 3 from?

This is the bottom part (from lesson 164)

``````function timesFive (bum) { return bum * 5;}
timesFive(3);
``````

Why am I getting 25 instead of 15?

Can you put your code in a jsbin or something for us to look at?

Is that like an online editor?

Yes itâs jsbin.com just type the code you wrote and share the link.

Just copy and paste all of the code in a reply. Make sure to put 3 backticks on the line before and the line after the code, so that it retains the formatting you used in your code.

Again, this is from lesson 164

``````
// Example

function minusSeven(num) {

return num - 7;

}

// Only change code below this line

function timesFive (bum) { return bum * 5;}

timesFive(3);
``````

So youâre wondering why num stores whatever value you pass to it?

I think so. Is that because num refers to the math library on javascript?

If your code is as you have it above, you will get 15 and not 25.

No itâs because num is a parameter of the function. Itâs your way of passing input to the function to do something with it. In this case youâre taking the input and and multiplying it by 5. SInce the input you pass in is 3 (indicated when you invoked the function with the line âtimesFive(3);â), youâre really saying 3 * 5 which is 15.

Here is another image:

I tried to share it on a javascript editor and it did not work. the online editor is saying it is coming out to 25 stillâŚ