Set 68 Practical Question

⭐ Q18 – JavaScript: While Loop Example

Example Code (Read Only):


<!DOCTYPE html>
<html>
<head>
<title>While Loop</title>
</head>

<body>

<script>
let a = 1;

while (a <= 10) {
    document.write(a + "<br>");
    a++;
}
</script>

</body>
</html>

Write Your HTML / JavaScript Code