run a while loop for certain time javascript code example
Example: run a while loop for certain time javascript
var keepCalling = true;
setTimeout(function () {
keepCalling = false;
}, 60000);
while (keepCalling) {
callPeople();
}
var keepCalling = true;
setTimeout(function () {
keepCalling = false;
}, 60000);
while (keepCalling) {
callPeople();
}