while loop infinite javascript code example
Example 1: javascript infinite loop
while (true) {
//your code
}
Example 2: javascript forever loop
while(0 == 0) {
//whatever
}
Example 3: forever loop in js
while(2 == 2) {
//your code here
}
Example 4: javascript forever loop
x = 2;
while (x == x) {
//please add your code here
}