Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

break loop timeout javascript

var keepCalling = true;

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

while ( keepCalling ) {
  // do something
}
 
PREVIOUS NEXT
Tagged: #break #loop #timeout #javascript
ADD COMMENT
Topic
Name
6+1 =