title: Refresh JS function with variables
body: <pre><code>function checkDownload(a, b) {
      var number = a;
      var id = b;
  
      //NOT RELATED CODE....
      setTimeout("checkDownload(number,id)", 5000);
  }
  checkDownload("test", "test1");
  </code></pre>
  
  <p>So the thing is, at the <code>setTimeout</code> an Error comes with (Cannot find variable number).... But why? I only want to refresh the function after 5 seconds with the variable I got before.</p>
  
  <p>Regards</p>