Skip to content

Commit da6bca6

Browse files
committed
update Loop While
1 parent 8949d1c commit da6bca6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Example/Loop/WhileLoop/WhileLoop.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Document</title>
7+
<script>
8+
let num = 1
9+
10+
while(num <= 10){
11+
12+
console.log(num)
13+
num = num + 1;
14+
15+
}
16+
</script>
717
</head>
818
<body>
919

0 commit comments

Comments
 (0)