javascript infinite loop

JavaScript
while (true) {
    //your code
}while(0 == 0) {
  //whatever
}while(2 == 2) {
  //your code here
}x = 2;
while (x == x) {
	//please add your code here
} 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");
	
Source

Also in JavaScript: