# Pass an unknown number of args to a function that calls a function

**URL:** <https://forum.kirupa.com/t/pass-an-unknown-number-of-args-to-a-function-that-calls-a-function/308093>\
**Category:** Uncategorized\
**Created:** [April 17, 2010, 3:56am UTC](https://forum.kirupa.com/t/pass-an-unknown-number-of-args-to-a-function-that-calls-a-function/308093 "2010-04-17T03:56:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OMG](https://avatars.discourse-cdn.com/v4/letter/o/9dc877/32.png) [@OMG](https://forum.kirupa.com/u/OMG)\
**Post date:** [April 17, 2010, 3:56am UTC](https://forum.kirupa.com/t/pass-an-unknown-number-of-args-to-a-function-that-calls-a-function/308093/1 "2010-04-17T03:56:11Z")

</div>

sorry if the title’s unclear (it’s unclear in my mind also lol) but basically what I’m trying to create is a custom timer that uses frames rather than milliseconds.  
But I can’t figure out how functions like setInterval calls the function you passed along with the arguments.  
First I create a reference to the function I want to execute after a certain interval and name it fc, then I create a list of arguments my function want to pass using Array, but then how do I put those arguments in fc()?

thanks
