+ 5

How to alert box in looping?

30th Mar 2017, 6:41 AM
आदित्य मद्धेशिया
आदित्य मद्धेशिया - avatar
2 odpowiedzi
+ 3
here is a possible code for a real situation : var x = 0; do { alert(x); x++; } while (x != 3)
30th Mar 2017, 7:25 AM
NCIBI Ali
NCIBI Ali - avatar
0
you mean in javascript? while(1) { alert("hahha :P"); } while 1 will always be repeated so you can't end this lol when you close one alert another will open But I don't think you ment this while writing question... :D
30th Mar 2017, 6:56 AM
Ivan Kerepčić
Ivan Kerepčić - avatar