JavaScript While Loop

The while loop creates a loop that executes a specified statement as long as the test condition evaluates to true.

Code :