- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwhile_loop.html
More file actions
Latest commit
30 lines (28 loc) · 629 Bytes
/
Copy pathwhile_loop.html
File metadata and controls
30 lines (28 loc) · 629 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<htmllang="en">
<head>
<metacharset="UTF-8">
<title>demo</title>
</head>
<body>
<pid="ja"></p>
<script>
varx=0;
while(x<11){
document.getElementById('ja').innerHTML+='<br/>'+x;
x++;
}
vararr=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];
vara=0;
while(a<arr.length){
document.getElementById('ja').innerHTML+='<br/>'+arr[a];
a++;
}
varcount=0;
while(count<=100){
document.write(count+'<br/>');
count++;
}
</script>
</body>
</html>