-
Notifications
You must be signed in to change notification settings - Fork 0
/
Assignment 4.html
139 lines (107 loc) · 4.21 KB
/
Assignment 4.html
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Assignment 4</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="style1.css">
<script>
//-- ------------------ Question 1 --------------------
// var a,b,c;
//-- ------------------ Question 1 --------------------
//-- ------------------ Question 2 --------------------
// var variable_1,variable2,Variable_3,$variable4,_variable5;
// var 1variable,2 variable,variable 3,!variable 4,variable5&;
//-- ------------------ Question 2 --------------------
//-- ------------------ Question 3 --------------------
function question3() {
document.write("<h1>Rules for naming JS variables</h1>" + "<br>");
document.write("Variables names can only contain, numbers, $ and _ . For Example : $my_1stVariable" + "<br>")
document.write("Variables must begin with a letter,$ or _ . For Example : $name, _name or name" + "<br>")
document.write("Variables are case sensitive" + "<br>")
document.write("Variables names should not be JS keywords")
}
//-- ------------------ Question 3 --------------------
</script>
</head>
<body>
<!-- --------------------- Navbar --------------------- -->
<nav class="navbar">
<div class="content">
<div class="logo">
<a href="#">Error 404 !!</a>
</div>
<ul class="menu-list">
<div class="icon cancel-btn">
<i class="fas fa-times"></i>
</div>
<li><a href="index.html">Home</a></li>
<li><a href="index.html#assignment">Assignment</a></li>
<li><a href="https://github.com/Saaim-K" target="_blank">Github</a></li>
<li><a href="https://www.linkedin.com/in/saaim-khan-998732221/">LinkedIN</a></li>
<li><a href="https://saaim-k.github.io/My-Portfolio/" target="_blank">Portfolio</a></li>
</ul>
<div class="icon menu-btn">
<i class="fas fa-bars"></i>
</div>
</div>
</nav>
<!-- --------------------- Navbar --------------------- -->
<!-- --------------------- Parallax --------------------- -->
<div class="parallax">
<div class="parallax-inner">
<h1 class="parallax-txt">
Assignment - 4
</h1>
<button onclick="question1()">
Question 1
</button>
<button onclick="question2()">
Question 2
</button>
<button onclick="question3()">
Question 3
</button>
<!-- <button onclick="question4()">
Question 4
</button> -->
<!-- <button onclick="question5()">
Question 5
</button>
<button onclick="question6()">
Question 6
</button>
<button onclick="question7()">
Question 7
</button>
<button onclick="question8()">
Question 8
</button>
<button onclick="question9()">
Question 9
</button>
<button onclick="question10()">
Question 10
</button>
<button onclick="question11()">
Question 11
</button>
<button onclick="question12()">
Question 12
</button>
<button onclick="question13()">
Question 13
</button> -->
</div>
</div>
<!-- --------------------- Parallax --------------------- -->
</body>
<!-- --------------------- My Javascript --------------------- -->
<script src="app.js"></script>
<!-- --------------------- My Javascript --------------------- -->
<!-- --------------------- Font Awesome Javascript --------------------- -->
<script src="https://kit.fontawesome.com/5fdfb82e3c.js" crossorigin="anonymous"></script>
<!-- --------------------- Font Awesome Javascript --------------------- -->
</html>