function checkDownload(a, b) {
var number = a;
var id = b;
//NOT RELATED CODE....
setTimeout("checkDownload(number,id)", 5000);
}
checkDownload("test", "test1");
So the thing is, at the setTimeout
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.
Regards