Repository navigation
Expand file tree
/
Copy pathvariable.html
More file actions
76 lines (70 loc) · 1.7 KB
/
Copy pathvariable.html
File metadata and controls
76 lines (70 loc) · 1.7 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!--
<!DOCTYPE html>
<html>
<head>
<title>Verable </title>
<h1>DOM class</h1>
</head>
<body>
<script type="text/javascript">
// let a = 1;
// let b = "hello";
// let c = true;
// document.write(a);
// document.write(b);
// document.write(c);
let a = 4;
let b =7;
let c = a+b;
let d = a-b;
let e = a*b;
let f = a/b;
let g = a%b;
let text ="aman";
document.write(a);
document.write(b);
document.write(c);
document.write(d);
document.write(e);
document.write(f);
document.write(g);
document.write("<h1>"+text+"</h1>")
</script>
</body>
</html>
-->
<!--
<!DOCTYPE html>
<html>
<head>
<title>if-else </title>
<h1>DOM class</h1>
</head>
<body>
<script type="text/javascript">
let num=8;
if(num>-1){
document.write("<b>the num is positve</b> ");
if(num%2 == 0)document.write(" <i>num is even</i>")
}
</script>
</body>
</html>
-->
<!DOCTYPE html>
<html>
<head>
<title>if-else </title>
<h1>DOM class</h1>
</head>
<body>
<script type="text/javascript">
let num=8;
while(num--) document.write("<b><i> num is "+num+"</i></b>");
do{
num++;
document.write("<b><i> num is "+num+"</i></b>")
}while(num<8)
</script>
</body>
</html>