Used when a certain condition is true
while (condition) { code block to be executed }
Syntax
var i=0; while (i < 5) { console.log("Solent University"); i++; }
Example