0

Function name inquiry!

Is timesTwo a function name that can be found in the library or is it any function name that you can create? I am reading the lesson about Function Parameter. It seems like it is also doing a mathematical computation for the arguments.

8th Sep 2016, 4:34 PM
zarah
zarah - avatar
1 Réponse
0
A function name can be whatever you want it to be. The name "timesTwo" holds no significance other than identifying what the function does. You could have a function called timesTwo that does essentially anything else. Think of it this way. Let's say you have a cup, you can put a label on the cup that says "water", you can put soda in it, but it's still known as the cup named "water". Function names are just useful tools that briefly identify what a function does.
14th Oct 2016, 5:14 AM
DaemonErrors
DaemonErrors - avatar