119k views
2 votes
I need an example of an infinite loop like something close to that.

I need an example of an infinite loop like something close to that.-example-1
User Asthor
by
7.3k points

1 Answer

5 votes

Answer:

int i =0

while(i=0){

console.log("if i=0 then this will keep printing until i is not 0")

}#we are not incrementing 'i' so i will be zero .

User Fn Control Option
by
6.6k points