while loop running only once in js 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();
}