vadnica-logo
X

JavaScript while Loop

The while loop executes a block of code as long as a specified condition is true. If the condition is not met at the very beginning, the code will not execute even once. When using this loop, we must be careful that the condition eventually becomes false, otherwise we create an infinite loop.

EXAMPLE
RESULT

Thank you for visiting! Adding privacy policy.

© 2024 All rights reserved.

Vam je koda pomagala? Če želite podpreti moj trud pri pripravi vodičev in vzdrževanju strani, mi lahko namenite donacijo za kavo.