Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

break loop after time javascript

var keepCalling = true;

setTimeout(function () {
  keepCalling = false;
}, 10000);

while ( keepCalling ) {
  // do something
}
 
PREVIOUS NEXT
Tagged: #break #loop #time #javascript
ADD COMMENT
Topic
Name
8+9 =