-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjavascriptpage.html
More file actions
395 lines (317 loc) · 12.3 KB
/
javascriptpage.html
File metadata and controls
395 lines (317 loc) · 12.3 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
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
<!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>American International school</title>
<link rel="stylesheet" href="htmlpagecss.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />
</head>
<body>
<div class="title-bar">
<div id="logo">
<!-- <div class="logo-image",Image> -->
<img class="logo-image" src="assets/logoscaled.png" alt="Image not found">
<!-- </div> -->
</div>
<div class="title-name">
<!-- <H1>AMERICAN International school</H1> -->
<ul>
<li>
<a href="index.html">
<H3>Home</H3>
</a>
</li>
<li>
<a href="homepage.html">
<H3>HTML</H3>
</a>
</li>
<li>
<a href="Css-page.html">
<H3>CSS</H3>
</a>
</li>
<li>
<a href="javascriptpage.html">
<H3>JS</H3>
</a>
</li>
</ul>
</div>
</div>
<nav class="nav-footer">
<ul>
<a href="#" class="show-content">
<li>
<!-- <label for="code" class="code"><i class="fas fa-menu"></i></label> -->
<h3>
MENU
</h3>
</li>
</a>
<a href="index.html">
<li>
<h3>
HOME
</h3>
</li>
</a>
<a href="homepage.html">
<li>
<h3>
HTML
</h3>
</li>
</a>
<a href="Css-page.html">
<li>
<h3>
CSS
</h3>
</li>
</a>
<a href="javascriptpage.html">
<li>
<h3>
JAVASCRIPT
</h3>
</li>
</a>
</ul>
</nav>
<div class="Content-view-port">
<section class="Course-content">
<ul>
<a href="#JS-Tutorial">
<li>
<h2>JS Tutorial</h2>
</li>
</a>
</ul>
<ul>
<a href="#JS-Syntax">
<li>
<p>JS Syntax</p>
</li>
</a>
</ul>
<ul>
<a href="#JSOutput">
<li>
<p>JS Output</p>
</li>
</a>
</ul>
<ul>
<a href="#JS-Statements">
<li>
<p>JS Statements</p>
</li>
</a>
</ul>
<ul>
<a href="#JS-Variables">
<li>
<p>JS Variables</p>
</li>
</a>
</ul>
<ul>
<a href="#JS-Operators">
<li>
<p>JS Operators</p>
</li>
</a>
</ul>
<ul>
<li>
<p>JS Datatypes</p>
</li>
</ul>
<ul>
<li>
<p>JS Functions</p>
</li>
</ul>
<ul>
<li>
<p>JS Objects </p>
</li>
</ul>
<ul>
<li>
<p>JS Events</p>
</li>
</ul>
<ul>
<li>
<p>JS Objects</p>
</li>
</ul>
<ul>
<li>
<p>JS Strings </p>
</li>
</ul>
<ul>
<li>
<p>JS Strings Methods </p>
</li>
</ul>
<ul>
<li>
<p>JS Classes </p>
</li>
</ul>
<!-- <ul>
<li>
<p>CSS Navigaton Bar </p>
</li>
</ul>
<ul>
<li>
<p>CSS DropDowns </p>
</li>
</ul>
<ul>
<li>
<p>CSS Image-Galley </p>
</li>
</ul>
<ul>
<li>
<p>CSS Forms </p>
</li>
</ul> -->
</section>
<section class="HTML-content">
<h1 id="JS-Tutorial">
JAVASCRIPT Tutorial
</h1>
<hr>
<hr>
<div>
<p>JavaScript is the world's most popular programming language.</p>
<p>JavaScript is the programming language of the Web.</p>
<p>JavaScript is easy to learn.</p>
<p>This tutorial will teach you JavaScript from basic to advanced.</p>
<br>
<iframe width="450" height="315" src="https://www.youtube.com/embed/PkZNo7MFNFg" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<br>
</div>
<hr>
<hr>
<div>
<h1>Examples in Each Chapter</h1>
<!-- <hr>
<hr> -->
<p></p>
<div>With our "Try it Yourself" editor, you can edit the source code and view the result.</div>
<img src="assets/js.png" alt="">
<p>HTML is easy to learn - You will enjoy it!</p>
<br>
<iframe width="450" height="315" src="https://www.youtube.com/embed/hdI2bqOjy3c" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<br>
</div>
<div id="JS-Syntax">
<h1>Examples in Each Chapter</h1>
<!-- <hr>
<hr> -->
<img src="assets/js syntax.png" alt="">
<p>javaScript syntax is the set of rules, how JavaScript programs are constructed:</p>
<h3>JavaScript Values</h3>
<div>The JavaScript syntax defines two types of values: <br>
Fixed values <br>
Variable values <br>
Fixed values are called Literals. <br>
Variable values are called Variables.</div>
<h3>JavaScript Literals</h3>
<p>The two most important syntax rules for fixed values are: <br>
1. Numbers are written with or without decimals:</p>
<br>
<iframe width="450" height="315" src="https://www.youtube.com/embed/KXxXr0RxGDE" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<br>
</div>
<div id="JSOutput">
<h1>JavaScript Output</h1>
<!-- <hr>
<hr> -->
<!-- <img src="assets/js syntax.png" alt=""> -->
<!-- <p>jJavaScript Display Possibilities</p> -->
<h3>JavaScript Display Possibilities</h3>
<div>JavaScript can "display" data in different ways: <br>
Writing into an HTML element, using innerHTML. <br>
Writing into the HTML output using document.write(). <br>
Writing into an alert box, using window.alert(). <br>
Writing into the browser console, using console.log().</div>
<h3>JavaScript Literals</h3>
<p>The two most important syntax rules for fixed values are: <br>
1. Numbers are written with or without decimals:</p>
</div>
<div id="JS-Variables">
<h1>JavaScript Variables</h1>
<!-- <hr>
<hr> -->
<!-- <img src="assets/js syntax.png" alt=""> -->
<!-- <p>jJavaScript Display Possibilities</p> -->
<!-- <h3>JavaScript Display Possibilities</h3> -->
<div>4 Ways to Declare a JavaScript Variable: <br>
Using var <br>
Using let <br>
Using const <br>
Using nothing</div>
<h3>What are Variables?</h3>
<p>Variables are containers for storing data (storing data values). <br>
In this example, x, y, and z, are variables, declared with the var keyword:</p>
<img src="assets/var.png" alt="">
<p>In this example, x, y, and z, are variables, declared with the let keyword:</p>
<br>
<iframe width="450" height="315" src="https://www.youtube.com/embed/edlFjlzxkSI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<br>
</div>
<div id="JS-Statements">
<h1>JavaScript Statements</h1>
<!-- <hr>
<hr> -->
<!-- <img src="assets/js syntax.png" alt=""> -->
<!-- <p>jJavaScript Display Possibilities</p> -->
<!-- <h3>JavaScript Display Possibilities</h3> -->
<img src="assets/js sentements.png" alt="">
<h3>JavaScript Programs</h3>
<div>A computer program is a list of "instructions" to be "executed" by a computer. <br>
In a programming language, these programming instructions are called statements. <br>
A JavaScript program is a list of programming statements.</div>
<h3>JavaScript Statements</h3>
<p>JavaScript statements are composed of: <br>
Values, Operators, Expressions, Keywords, and Comments. <br>
This statement tells the browser to write "Hello Dolly." inside an HTML element with id="demo":<br>
In this example, x, y, and z, are variables, declared with the var keyword:</p>
<img src="assets/var.png" alt="">
<p>In this example, x, y, and z, are variables, declared with the let keyword:</p>
</div>
<div >
<h1 id="JS-Operators">JavaScript Operators</h1>
<img src="assets/js sentements.png" alt="">
<!-- <h3>JavaScript Programs</h3> -->
<div>The assignment operator (=) assigns a value to a variable. <br>
<p>let x = 10;</p>
The addition operator (+) adds numbers: <br>
let x = 5; <br>
let y = 2; <br>
let z = x + y;<br>
The multiplication operator (*) multiplies numbers. <br>
</div>
<h3>JavaScript Statements</h3>
<p>JavaScript statements are composed of: <br>
Values, Operators, Expressions, Keywords, and Comments. <br>
This statement tells the browser to write "Hello Dolly." inside an HTML element with id="demo":<br>
In this example, x, y, and z, are variables, declared with the var keyword:</p>
<img src="assets/var.png" alt="">
<p>In this example, x, y, and z, are variables, declared with the let keyword:</p>
</div>
</section>
</div>
</body>
</html>