Infinite pętla JavaScript
while (true) {
//your code
}
Mobile Star
while (true) {
//your code
}
// Infinite loop with the terminating condition set to infinity
for (var i = 0; i < Infinity; i++) {
// statements
}
// Also you can try
for (;;) {
// statements
}
while(2 == 2) {
//your code here
}
x = 2;
while (x == x) {
//please add your code here
}