js infinite loop

Solutions on MaxInterview for js infinite loop by the best coders in the world

showing results for - "js infinite loop"
Amelia
13 Jan 2018
1while (true) {
2    //your code
3}
Miranda
07 Jul 2019
1while(2 == 2) {
2  //your code here
3}
Alma
03 May 2019
1var i = 1;
2var sum = 0;
3while(i < 5) {
4    sum += i;
5}
6println(sum);