# \[FMX\]Just an exercise

**URL:** <https://forum.kirupa.com/t/fmx-just-an-exercise/52161>\
**Category:** flash\
**Created:** [May 20, 2004, 5:31pm UTC](https://forum.kirupa.com/t/fmx-just-an-exercise/52161 "2004-05-20T17:31:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cki](https://avatars.discourse-cdn.com/v4/letter/c/85f322/32.png) [@cki](https://forum.kirupa.com/u/cki)\
**Post date:** [May 20, 2004, 5:31pm UTC](https://forum.kirupa.com/t/fmx-just-an-exercise/52161/1 "2004-05-20T17:31:42Z")

</div>

Hi,

I’m attempting to modify the function below to accept an abitrary number of inputs. I think storing them in a variable then combining them is the method, but could use guidance.

function combine(a,b){  
var result = a + b;  
return result;  
}  
combine(10,20)

I would like to pass any number of parameters to combine for addition, ie. combine(n,n,n,n,n,n,)
