Skip to content

Commit f21ad06

Browse files
committed
update - loop
1 parent 1811caf commit f21ad06

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

Example/Loop/for_loop.html

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Document</title>
7+
<style>
8+
li{
9+
list-style: none;
10+
background-color: aqua;
11+
margin: 10px;
12+
border: solid 1px black;
13+
height: 34px;
14+
width: 50px;
15+
text-align: center;
16+
padding-top: 20px;
17+
border-radius: 30px;
18+
float: left;
19+
}
20+
21+
</style>
22+
23+
</head>
24+
<body>
25+
<ul>
26+
<script>
27+
28+
// start point
29+
// end point
30+
// print
31+
// ++ / --
32+
33+
for(let a = 1 ; a <= 50 ; a++){
34+
35+
document.write("<li>"+a+"</li>")
36+
37+
}
38+
39+
</script>
40+
</ul>
41+
</body>
42+
</html>

0 commit comments

Comments
 (0)