generated from GeekwiseAcademy/course-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsix.html
More file actions
208 lines (198 loc) · 8.61 KB
/
six.html
File metadata and controls
208 lines (198 loc) · 8.61 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Javascript for Beginners - Day Six</title>
<link rel="icon" type="image/png" href="favicon.png">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header>
<div class="logo"><a href="index.html"><img class="img-fluid" src="img/bitwise_workforce_training.png" alt="bitwise workforce logo"></a></div>
<nav class="navbar navbar-expand-lg navbar-light">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="index.html">Course Outline</a>
</li>
<li class="nav-item">
<!-- <a class="nav-link" href="links.html">Handy Links</a> -->
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown" role="button" aria-expanded="true">Lessons</a>
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink">
<li><a class="dropdown-item" href="one.html">Day One</a></li>
<li><a class="dropdown-item" href="two.html">Day Two</a></li>
<li><a class="dropdown-item" href="three.html">Day Three</a></li>
<li><a class="dropdown-item" href="four.html">Day Four</a></li>
<li><a class="dropdown-item" href="five.html">Day Five</a></li>
<li><a class="dropdown-item active" href="six.html">Day Six</a></li>
<li><a class="dropdown-item" href="seven.html">Day Seven</a></li>
<li><a class="dropdown-item" href="eight.html">Day Eight</a></li>
<li><a class="dropdown-item" href="nine.html">Day Nine</a></li>
<li><a class="dropdown-item" href="ten.html">Day Ten</a></li>
<li><a class="dropdown-item" href="eleven.html">Day Eleven</a></li>
<li><a class="dropdown-item" href="twelve.html">Day Twelve</a></li>
<li><hr class="dropdown-divider"></li>
<!-- <li><a class="dropdown-item" href="final.html">Final Project</a></li> -->
</ul>
</li>
</ul>
</div>
</nav>
</header>
<main class="container padtop3">
<div class="row">
<div class="col text-center">
<h1>Day 6</h1>
</div>
</div>
<section class="row section">
<aside class="col">
<h2>Concepts</h2>
</aside>
<div class="col-9">
<ul class="points">
<li>Take Home Review</li>
<li>Promises and Callbacks</li>
<li>Daily Challenge</li>
<li>APIs</li>
<li>JSON</li>
<li>Take Home Challenge</li>
</ul>
</div>
</section>
<section class="row section">
<aside class="col">
<h2>Take Home Review</h2>
</aside>
<div class="col-9">
<ul class="points">
<li>Questions?</li>
</ul>
</div>
</section>
<section class="row section">
<aside class="col">
<h2>Promises and Callbacks</h2>
</aside>
<div class="col-9">
<ul class="points">
<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise" target="_blank">MDN Reference: Promise</a></li>
<ul class="nested-points">
<li>States</li>
<ul class="nested-points">
<li>Pending</li>
<li>Resolved</li>
<li>Rejected</li>
</ul>
<li>Methods</li>
<ul class="nested-points">
<li><code>.catch()</code></li>
<li><code>.then()</code></li>
<li><code>.finally()</code></li>
<li><code>Promise.all()</code></li>
</ul>
<li>new Promise()</li>
<li>Chaining methods</li>
<li>Async / Await</li>
<ul class="nested-points">
<li><a href="https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Async_await" target="_blank">MDN Reference: Async / Await</a></li>
<li>Error Handling</li>
<ul class="nested-points">
<li><code>try</code></li>
<li><code>catch</code></li>
</ul>
<li><strong>Additional Reading: </strong><a href="https://medium.com/javascript-in-plain-english/async-await-javascript-5038668ec6eb" target="_blank">How to use Async Await in Javascript</a></li>
</ul>
</ul>
<li><a href="https://www.w3schools.com/js/js_callback.asp" target="_blank">W3Schools Reference: Callbacks</a></li>
<ul class="nested-points">
<li><code>this</code> keyword</li>
</ul>
</ul>
</div>
</section>
<section class="row section">
<aside class="col">
<h2>Daily Challenge</h2>
</aside>
<div class="col-9">
<ol class="points">
<li>What is the output for the following examples?</li>
<ul class="nested-points">
<p class="codepen" data-height="655" data-theme-id="light" data-default-tab="js" data-user="geekwise" data-slug-hash="2f27814e351f7f5a726ae90be26908d4" style="height: 655px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;" data-pen-title="JS4B - Day 6 Daily Challenge">
<span>See the Pen <a href="https://codepen.io/team/geekwise/pen/2f27814e351f7f5a726ae90be26908d4">
JS4B - Day 6 Daily Challenge</a> by Geekwise Academy (<a href="https://codepen.io/geekwise">@geekwise</a>)
on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://cpwebassets.codepen.io/assets/embed/ei.js"></script>
</ul>
</ol>
</div>
</section>
<section class="row section">
<aside class="col">
<h2>Daily Challenge Review</h2>
</aside>
<div class="col-9">
<ul class="points">
<li>Questions?</li>
</ul>
</div>
</section>
<section class="row section">
<aside class="col">
<h2>APIs</h2>
</aside>
<div class="col-9">
<ul class="points">
<li>What is an API?</li>
<ul class="nested-points">
<li>Additional Resource: <a href="https://youtu.be/OVvTv9Hy91Q" target="_blank">What is an API (Video)</a></li>
</ul>
<li>How do we access an API?</li>
<ul class="nested-points">
<li><a href="https://www.w3schools.com/js/js_api_fetch.asp" target="_blank">W3Schools Reference: Fetch</a></li>
</ul>
</ul>
</div>
</section>
<section class="row section">
<aside class="col">
<h2>JSON</h2>
</aside>
<div class="col-9">
<ul class="points">
<li><a href="https://www.w3schools.com/whatis/whatis_json.asp" target="_blank">What is JSON?</a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON" target="_blank">MDN Reference: JSON</a></li>
<li><code>JSON.parse()</code></li>
<li><code>JSON.stringify()</code></li>
</ul>
</div>
</section>
<section class="row section">
<aside class="col">
<h2>Take Home Challenge</h2>
</aside>
<div class="col-9">
<ol class="points">
<li>Create a new pen in codepen</li>
<li>Make a reaquest to this <a href="https://alexwohlbruck.github.io/cat-facts/docs/" target="_blank">Cat Facts</a> API</li>
<li>Get a random cat fact</li>
<li>Display the cat fact in an alert</li>
</ol>
</div>
</section>
</main><!-- end Container -->
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script type="text/javascript" src="js/bootstrap.min.js" integrity="sha384-oesi62hOLfzrys4LxRF63OJCXdXDipiYWBnvTl9Y9/TRlw5xlKIEHpNyvvDShgf/" crossorigin="anonymous"></script>
<script type="text/javascript" src="js/script.js"></script>
</body>
</html>