Skip to content

Commit b27e4fc

Browse files
committed
updated exercises
1 parent a769ae5 commit b27e4fc

File tree

2 files changed

+484
-5
lines changed

2 files changed

+484
-5
lines changed

exercises.js

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
5757
*/
5858

5959

60+
6061
/*
6162
* #4
6263
* Function - mustBeTrue
@@ -70,6 +71,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
7071
*/
7172

7273

74+
7375
/*
7476
* #5
7577
* Function - bigBird
@@ -83,6 +85,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
8385
*/
8486

8587

88+
8689
/*
8790
* #6
8891
* Function - isEqual
@@ -124,6 +127,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
124127
*/
125128

126129

130+
127131
/*
128132
* #9
129133
* Function - dirty30
@@ -139,6 +143,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
139143
*/
140144

141145

146+
142147
/*
143148
* #10
144149
* Function - evenStevens
@@ -152,6 +157,8 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
152157
*/
153158

154159

160+
161+
155162
/*
156163
* #11
157164
* Function - daClub
@@ -180,6 +187,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
180187
*/
181188

182189

190+
183191
/*
184192
* #13
185193
* Function - moneyTrain
@@ -208,6 +216,9 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
208216
*/
209217

210218

219+
220+
221+
211222
/*
212223
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.
213224
@@ -259,6 +270,7 @@ for (var i = 0; i<toyotaModels.length; i++){
259270
*/
260271

261272

273+
262274
/*
263275
* #18
264276
* Function - allStars
@@ -271,10 +283,6 @@ for (var i = 0; i<toyotaModels.length; i++){
271283
* Console.log both the east and west arrays.
272284
*/
273285

274-
var players = ["LeBron", "Linsanity", "Kawhi", "Kobe", "Yao Ming", "Bird", "Jordan"];
275-
var east = [];
276-
var west = [];
277-
278286
/*
279287
* #19
280288
* Function - subways
@@ -302,7 +310,8 @@ Final Boss
302310
* 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!
303311
*/
304312

305-
var phrase = "An apple a day keeps Alice feeling awesome!"
313+
314+
306315

307316

308317

0 commit comments

Comments
 (0)