We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1811caf commit f21ad06Copy full SHA for f21ad06
Example/Loop/for_loop.html
@@ -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