PrimitiveType

Loop

Most programming languages give the programmer a way to repeat code fragments using loops. Loops come in a variety of types, such as for loops, while loops and do-while loops. A loop may be used to print out each separate line of an HTML table displaying information about cars stored in a database. In graphical user interface programming, an ongoing loop may be used to regularly check for user interaction. When a loop has no exit condition, it is known as an infinite loop.

See ALL glossary entries