title: Javascript - Pass variable parameters to Function
body: <p>I am looking to be able to create two functions, BaseFunction and CallbackFunction where BaseFunction takes in a variable set of parameters as such:</p>
  
  <pre><code>BaseFunction(arg1, arg2, ....)
  {
      //Call the Callback function here
  }
  </code></pre>
  
  <p>and callback function receives the same parameters back:</p>
  
  <pre><code>CallbackFunction(value, arg1, arg2, ...)
  {
  
  }
  </code></pre>
  
  <p>How can I pass the parameters from the base function to the callback function?</p>