js repeat endless code example
Example 1: javascript infinite loop
while (true) {
//your code
}
Example 2: javascript forever loop
while(0 == 0) {
//whatever
}
while (true) {
//your code
}
while(0 == 0) {
//whatever
}