Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

infinite loop in programming

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

// Also you can try
for (;;) {
	// statements
}
Comment

Infinite loop example

function loopy() {
  while(true) {
    console.log("Hello, world!");
  }
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: js background 
Javascript :: add variable inside regex in javascript 
Javascript :: EVERY METHOD 
Javascript :: get all local storage 
Javascript :: query select multiple classes 
Javascript :: replace backward slash in javascript 
Javascript :: typescript css variables 
Javascript :: react native different styles for ios and android 
Javascript :: package.json tilde vs caret 
Javascript :: mongo query by object id node js 
Javascript :: push only elements list into another list javascript 
Javascript :: set cookie in node 
Javascript :: list methods of object js 
Javascript :: jquery add element to array 
Javascript :: angular call function every x seconds 
Javascript :: redux logger 
Javascript :: get status bar height react native 
Javascript :: how to master javascript 
Javascript :: how to reverse loop in javascript 
Javascript :: phaser 3 add button 
Javascript :: trunc number javascript 
Javascript :: Round off a number to the next multiple of 5 using JavaScript 
Javascript :: string methods javascript count number of words inside a string 
Javascript :: jquery selector checked 
Javascript :: falsy javascript 
Javascript :: how to divide array in chunks 
Javascript :: on spacebar press javascript 
Javascript :: jquery change select option text 
Javascript :: find the max length of string elements in an array 
Javascript :: format time in moment 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =