what is an infinite loop in javascript code example
Example 1: forever loop in js
while(2 == 2) {
//your code here
}
Example 2: javascript forever loop
x = 2;
while (x == x) {
//please add your code here
}
while(2 == 2) {
//your code here
}
x = 2;
while (x == x) {
//please add your code here
}