how to break second loop in javascript code example
Example: break loop after time javascript
var keepCalling = true;
setTimeout(function () {
keepCalling = false;
}, 10000);
while ( keepCalling ) {
// do something
}
var keepCalling = true;
setTimeout(function () {
keepCalling = false;
}, 10000);
while ( keepCalling ) {
// do something
}