Answers for "javascript infinite loop"

5

javascript infinite loop

while (true) {
    //your code
}
Posted by: Guest on March-08-2020
2

javascript forever loop

while(0 == 0) {
  //whatever
}
Posted by: Guest on March-21-2020
0

forever loop in js

while(2 == 2) {
  //your code here
}
Posted by: Guest on April-05-2020
0

javascript forever loop

x = 2;
while (x == x) {
	//please add your code here
}
Posted by: Guest on April-08-2020
-1

javascript infinite for loop

var userInput;
		   var more;
		   
           userInput=prompt("Select number from 0 to 9","")
		   userInput=parseInt(userInput);
		  

		  for (index=userInput;index < 0;index>9 ) {
	document.write("Not in range");
	
	
}
document.write("Not in range");
Posted by: Guest on February-17-2021
-1

js infinite loop

var i = 1;
var sum = 0;
while(i < 5) {
    sum += i;
}
println(sum);
Posted by: Guest on September-16-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language