generated from GeekwiseAcademy/course-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtwo.html
More file actions
251 lines (239 loc) · 10 KB
/
two.html
File metadata and controls
251 lines (239 loc) · 10 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
<!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 Two</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 active" 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" 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 2</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>Git Review</li>
<li>Data Types</li>
<li>Daily Challenge</li>
<li>Variables</li>
<li>Operators</li>
<!-- <li>Final Project Overview</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>Merge your take-home branch into master</li>
<li>Make sure your master branch is up-to-date locally and in Github</li>
<li>Questions?</li>
</ul>
</div>
</section>
<section class="row section">
<aside class="col">
<h2>Git Review</h2>
</aside>
<div class="col-9">
<ul class="points">
<li><a href="https://github.com">Github</a></li>
<li><a href="https://docs.github.com/en/github/getting-started-with-github/create-a-repo">Create a Repository</li>
<li><a href="https://guides.github.com/introduction/flow/" target="_blank">Git workflow</a></li>
</ul>
</div>
</div>
<section class="row section">
<aside class="col">
<h2>Data Types</h2>
</aside>
<div class="col-9">
<ul class="points">
<li><a href="https://javascript.info/types" target="_blank">Primitive Data Types</a></li>
<ul class="nested-points">
<li>Strings</li>
<ul class="nested-points">
<li>Always wrapped in single quotes or double quotes</li>
<li>.length property</li>
<li>Concatenation</li>
<li>Interpolation</li>
<ul class="nested-points">
<li><a href="https://developers.google.com/web/updates/2015/01/ES6-Template-Strings" target="_blank">Template Literals</a></li>
</ul>
</ul>
<li>Numbers</li>
<ul class="nested-points">
<li>Used for integers and decimal values</li>
<li>Infinity</li>
<li>NaN</li>
</ul>
<li>Boolean</li>
<ul class="nested-points">
<li>True</li>
<li>False</li>
</ul>
<li>Undefined</li>
<ul class="nested-points">
<li>No value assigned</li>
</ul>
<li><a href="https://javascript.info/bigint" target="_blank">BigInt</a></li>
<ul class="nested-points">
<li>Used for integers of longer length than the number data type</li>
<li>Created by adding an "n" to the end of an integer</li>
</ul>
<li><a href="https://developer.mozilla.org/en-US/docs/Glossary/symbol" target="_blank">Symbol</a></li>
<ul class="nested-points">
<li>Creates anonymous and unique values</li>
</ul>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof" target="_blank">typeof</a></li>
</ul>
</ul>
</div>
</section>
<section class="row section">
<aside class="col">
<h2>Daily Challenge</h2>
</aside>
<div class="col-9">
<ul class="points">
<li>In your js-practice repository:</li>
<ol class="nested-points points">
<li>Create a new branch named <strong>"day-2"</strong></li>
<li>Using the <code>.length</code> property, console log the number of letters in <strong>“Supercalifragilisticexpialidocious”</strong></li>
<li>Console log any number</li>
<li>Console log a BigInt</li>
<li>Hint: Use typeof to confirm your number and BigInt values</li>
<li>git add, commit, and push to your <code>day-2</code> branch</li>
</ol>
</ul>
</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>Variables</h2>
</aside>
<div class="col-9">
<ul class="points">
<li><code>var</code> - used in previous JS versions</li>
<li><code>let</code> - declared values can be reassigned</li>
<li><code>const</code> - declared values can not be reassigned</li>
<li><a href="https://www.dummies.com/web-design-development/javascript/naming-javascript-variables/">Naming Javascript Variables</a></li>
<li><a href="https://www.freecodecamp.org/news/what-is-variable-hoisting-differentiating-between-var-let-and-const-in-es6-f1a70bb43d/" target="_blank">Hoisting</a></li>
</ul>
</div>
</section>
<section class="row section">
<aside class="col">
<h2>Operators</h2>
</aside>
<div class="col-9">
<ul class="points">
<li>Assignment</li>
<ul class="nested-points">
<li><code>=</code> assignment</li>
<li><code>+=</code> addition assignment</li>
<li><code>-=</code> subtraction assignment</li>
<li><code>*=</code> multiplication assignment</li>
<li><code>/=</code> division assignment</li>
</ul>
<li>Arithmetic</li>
<ul class="nested-points">
<li><code>+</code> addition</li>
<li><code>-</code> subtraction</li>
<li><code>*</code> multiplication</li>
<li><code>/</code> division</li>
<li><code>%</code> modulo</li>
</ul>
</ul>
</div>
</section>
<!-- <div class="row section">
<aside class="col">
<h2>Final Project Overview</h2>
</aside>
<div class="col-9">
<ul class="points">
<li><a href="final.html">View Final Project Details</a></li>
</ul>
</div>
</div> -->
<section class="row section">
<aside class="col">
<h2>Take Home Challenge</h2>
</aside>
<div class="col-9">
<ol class="points">
<li>Directions for the take home can be found in this Codepen: <a href="https://codepen.io/GeekwiseAcademy/pen/eYZxeaN" target="_blank">Mad Libs Challenge*</a></li>
<ul class="nested-points points">
<li>*<em>If you want to save your work, you will need to create a free codepen account</em></li>
</ul>
</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>