Advertisement
728x90
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,
javascript
1for (;;) {}
2
3while (true) {}Advertisement
Responsive Ad
🎯 Practice NowRelated Challenge
JavaScript Coding Exercise 46
Test your knowledge with this interactive coding challenge.
Start CodingAdvertisement
728x90
302of476