-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWeek1.html
55 lines (48 loc) · 1.24 KB
/
Week1.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
<!DOCTYPE HTML>
<html>
<body>
<main>
<div>
<h3>For Loop, Display Hello World</h3>
<button onclick="forLoop()">For Loop</button>
<div id='forLoop'></div>
</div>
<div>
<h3>Display Hello Planet</h3>
<button onclick="whileLoop()">While Loop</button>
<div id='whileLoop'></div>
</div>
<div>
<h3>Display Hello Solar System</h3>
<button onclick="doWhileLoop()">Do While Loop</button>
<div id='doWhileLoop'></div>
</div>
<div>
<h3>Display Hello Sun / Star</h3>
<button onclick="ifElseLoop()">Else If Loop</button>
<div id='ifElseLoop'></div>
</div>
<div>
<h3>Display Colors</h3>
<button onclick="ifElseIfLoop()">If Else If Loop</button>
<div id='ifElseIfLoop'></div>
</div>
<div>
<h3>Switch Statement Color</h3>
<button onclick="switchStatement()">Switch</button>
<div id='switchStatement'></div>
</div>
<div>
<h3>Array</h3>
<button onclick="firstArray()">Items in Array</button>
<div id='firstArray'></div>
</div>
<div>
<h3>Associative Array</h3>
<button onclick="assocArray()">Items in an Associative Array</button>
<div id='assocArray'></div>
</div>
</main>
<script src="loops.js"></script>
</body>
</html>