while

while

Description

while (mixed condition)

Parameters

Name Description Type Default Optional
condition mixed No

Examples

Example #1 – while example
var i = 1; while (i <= 5) { console.log('Iteration round: ' + i++); }

External references