jargons.dev icon indicating copy to clipboard operation
jargons.dev copied to clipboard

Dictionary (New Word): Infinite Loop

Open AdamsRuth1 opened this issue 6 months ago • 1 comments

Word

Infinite Loop

Meaning/Definition

An infinite loop is a loop that has no end. A loop that has a terminating condition that can never be met. To some certain conditions it can be useful but most times causes issues when not properly handled. Example of an infinite loop in JS is a while loop

while (true) { console.log("This will run forever."); }

AdamsRuth1 avatar Aug 05 '24 21:08 AdamsRuth1