FrontendDeveloper.in

JavaScript question detail

How do you create an infinite loop

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) {}
Back to all JavaScript questions
Get LinkedIn Premium at Rs 399