⇧
vadnica-logo
My Services About the Project Telegram O meni O meni

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