Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

easy way to create infinite loop in javascript

// Infinite loop with the terminating condition set to infinity
for (var i = 0; i < Infinity; i++) {
	// statements
}

// Also you can try
for (;;) {
	// statements
}
 
PREVIOUS NEXT
Tagged: #easy #create #infinite #loop #javascript
ADD COMMENT
Topic
Name
1+3 =