Result Size: 300 x 150
x
 
<!DOCTYPE html>
<html lang='uk'>
<body>
<h2>JavaScript Цикл While</h2>
<p id="demo"></p>
<script>
let text = "";
let i = 0;
while (i < 10) {
  text += "<br>Число є " + i;
  i++;
}
document.getElementById("demo").innerHTML = text;
</script>
</body>
</html>