-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjavascriptDemo.html
More file actions
85 lines (85 loc) · 4.2 KB
/
javascriptDemo.html
File metadata and controls
85 lines (85 loc) · 4.2 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
<!DOCTYPE html>
<html lang="en-us">
<head>
<title>JavaScript Learning</title>
<link rel="stylesheet" type="text/css" href="css/main.css"/>
<meta charset="utf-8">
<meta name="viewport" content="width:device-width, initial-scale=1.0">
<meta name="description" content="Learning JavaScript. Please be kind.">
<meta name="author" content="Tristan Stickels">
</head>
<body id="global">
<table class="simpleTable">
<thead>
<tr>
<th>Concept</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td>Strings</td>
<td>
<table>
<thead>
<tr>
<th>
Operation
</th>
<th>
Example
</th>
</tr>
</thead>
<tbody>
<tr>
<td>Substring</td>
<td>
Code:
<pre>
let str = "Apple, Banana, Kiwi";
document.getElementById("demoSubstring").innerHTML = str.substring(7,13);
</pre>
Result:
<span id="demoSubstring"></span>
</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>Arrays</td>
<td>
<table>
<thead>
<th>Operation</th>
<th>Example</th>
</thead>
<tbody>
<tr>
<td>Length</td>
<td>The length of the array [1, 2, 3, 4, 5] is <span id="someArray"></span>span></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>Sets and Maps</td>
<td>
</td>
</tr>
</tbody>
</table>
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>