Core JavaScript

Intermediate JavaScript

JavaScript Reference

JavaScript While Loop Example




What is While Loop?
In JavaScript While Loop check condition and execute while block for a specify number of time, while a specified condition is true.


Example-Code:

Example-Results: