in JavaScript by
How do you create an infinite loop in Javascript?

1 Answer

0 votes
by

You can create infinite loops using for and while loops without using any expressions. The for loop construct or syntax is better approach in terms of ESLint and code optimizer tools,

for (;;) {}
while (true) {}
...