Skip to main content
InterviewHubPRO
Section Overview
Q306

Question 306 of 536

Part 5: ES6+ Modern Syntax, Classes, Modules & Destructuring (254 - 328)

57%
JavaScript & V8 Internals (536 Qs)•Part 5: ES6+ Modern Syntax, Classes, Modules & Destructuring (254 - 328)

How do you create an infinite loop

junior LevelCode ExamplejavascriptES6+ Modern Syntax

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
  for (;;) {}
  while (true) {}