Skip to content

Commit

Permalink
updated exercises
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlhlee committed Mar 13, 2017
1 parent a769ae5 commit b27e4fc
Show file tree
Hide file tree
Showing 2 changed files with 484 additions and 5 deletions.
19 changes: 14 additions & 5 deletions exercises.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
*/



/*
* #4
* Function - mustBeTrue
Expand All @@ -70,6 +71,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
*/



/*
* #5
* Function - bigBird
Expand All @@ -83,6 +85,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
*/



/*
* #6
* Function - isEqual
Expand Down Expand Up @@ -124,6 +127,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
*/



/*
* #9
* Function - dirty30
Expand All @@ -139,6 +143,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
*/



/*
* #10
* Function - evenStevens
Expand All @@ -152,6 +157,8 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
*/




/*
* #11
* Function - daClub
Expand Down Expand Up @@ -180,6 +187,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
*/



/*
* #13
* Function - moneyTrain
Expand Down Expand Up @@ -208,6 +216,9 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true
*/





/*
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.
Expand Down Expand Up @@ -259,6 +270,7 @@ for (var i = 0; i<toyotaModels.length; i++){
*/



/*
* #18
* Function - allStars
Expand All @@ -271,10 +283,6 @@ for (var i = 0; i<toyotaModels.length; i++){
* Console.log both the east and west arrays.
*/

var players = ["LeBron", "Linsanity", "Kawhi", "Kobe", "Yao Ming", "Bird", "Jordan"];
var east = [];
var west = [];

/*
* #19
* Function - subways
Expand Down Expand Up @@ -302,7 +310,8 @@ Final Boss
* 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!
*/

var phrase = "An apple a day keeps Alice feeling awesome!"





Expand Down
Loading

0 comments on commit b27e4fc

Please sign in to comment.