You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exercises.js
+14-5Lines changed: 14 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
57
57
*/
58
58
59
59
60
+
60
61
/*
61
62
* #4
62
63
* Function - mustBeTrue
@@ -70,6 +71,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
70
71
*/
71
72
72
73
74
+
73
75
/*
74
76
* #5
75
77
* Function - bigBird
@@ -83,6 +85,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
83
85
*/
84
86
85
87
88
+
86
89
/*
87
90
* #6
88
91
* Function - isEqual
@@ -124,6 +127,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
124
127
*/
125
128
126
129
130
+
127
131
/*
128
132
* #9
129
133
* Function - dirty30
@@ -139,6 +143,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
139
143
*/
140
144
141
145
146
+
142
147
/*
143
148
* #10
144
149
* Function - evenStevens
@@ -152,6 +157,8 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
152
157
*/
153
158
154
159
160
+
161
+
155
162
/*
156
163
* #11
157
164
* Function - daClub
@@ -180,6 +187,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
180
187
*/
181
188
182
189
190
+
183
191
/*
184
192
* #13
185
193
* Function - moneyTrain
@@ -208,6 +216,9 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
208
216
*/
209
217
210
218
219
+
220
+
221
+
211
222
/*
212
223
For loops - A for loop checks a condition a specific number of times and allows us to execute a code block and evaluate a condition to determine if our loop should run again.
213
224
@@ -259,6 +270,7 @@ for (var i = 0; i<toyotaModels.length; i++){
259
270
*/
260
271
261
272
273
+
262
274
/*
263
275
* #18
264
276
* Function - allStars
@@ -271,10 +283,6 @@ for (var i = 0; i<toyotaModels.length; i++){
* The function will loop through the string value and put all the letters into an array, except for the letter "A" and "a". We don't want no stinking "A" or "a" in our array. Test your function with the `phrase` below!
303
311
*/
304
312
305
-
varphrase="An apple a day keeps Alice feeling awesome!"
0 commit comments