while / loopConditional and infinite loops.Syntaxwhile condition { }Descriptionwhile loops as long as the condition is true; loop is infinite (exited with break).ExampleLoading editor…▶ Try it yourselfExpected output0 1 2When to use?Indefinite repetition.Related commandsfor (range)← for (range)