From a14ccffadfd8b4b7215a959044dee12892714e10 Mon Sep 17 00:00:00 2001 From: Victor Date: Fri, 7 Apr 2017 21:41:45 -1000 Subject: [PATCH 01/27] complete ex 1 --- exercises.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exercises.js b/exercises.js index 2f86f9d..c61c504 100644 --- a/exercises.js +++ b/exercises.js @@ -29,7 +29,8 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true * The function will return true if the number passed into the function is equal to or greater than Hawaii's voting age. Console.log your result. */ - +var hi = "sup"; +console.log(hi); /* * #2 * Function - login From 2b5683bddad124164c5b2e2c4969efd223427c0f Mon Sep 17 00:00:00 2001 From: Victor Date: Wed, 10 May 2017 18:57:24 -1000 Subject: [PATCH 02/27] complete ex 1 --- exercises.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/exercises.js b/exercises.js index c61c504..5058c86 100644 --- a/exercises.js +++ b/exercises.js @@ -29,8 +29,14 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true * The function will return true if the number passed into the function is equal to or greater than Hawaii's voting age. Console.log your result. */ -var hi = "sup"; -console.log(hi); +function canVote(age){ + if(age >= 18){ + return true; + } +} + +console.log(canVote(18)); + /* * #2 * Function - login From 65d3a73c3ed79a16bfd5ce36bf1c007e2dece1ff Mon Sep 17 00:00:00 2001 From: Victor Date: Fri, 7 Jul 2017 20:55:09 -1000 Subject: [PATCH 03/27] set up canvote function --- exercises.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/exercises.js b/exercises.js index 5058c86..5b5c985 100644 --- a/exercises.js +++ b/exercises.js @@ -30,12 +30,10 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true */ function canVote(age){ - if(age >= 18){ - return true; - } + + } -console.log(canVote(18)); /* * #2 From 6b391f4b329ecacc9d99eaffc4e767377208c1ba Mon Sep 17 00:00:00 2001 From: Victor Date: Fri, 7 Jul 2017 21:01:40 -1000 Subject: [PATCH 04/27] completed canVote exercise --- exercises.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/exercises.js b/exercises.js index 5b5c985..97f1a67 100644 --- a/exercises.js +++ b/exercises.js @@ -30,9 +30,13 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true */ function canVote(age){ + if(age >= 18){ + return true; + } - } +console.log(canVote(20)); + /* From 9e2eb93af7926b94578c4146631fe422f48eb16b Mon Sep 17 00:00:00 2001 From: Victor Lee Date: Mon, 9 Oct 2017 19:09:28 -1000 Subject: [PATCH 05/27] testing --- exercises.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises.js b/exercises.js index 97f1a67..6433017 100644 --- a/exercises.js +++ b/exercises.js @@ -35,7 +35,7 @@ function canVote(age){ } } -console.log(canVote(20)); +console.log(canVote(21)); From 9009d93e667d2ab2c909a5112dbf622009619406 Mon Sep 17 00:00:00 2001 From: Victor Lee Date: Mon, 9 Oct 2017 19:20:13 -1000 Subject: [PATCH 06/27] complete canVote function --- exercises.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/exercises.js b/exercises.js index 6433017..da5c6a7 100644 --- a/exercises.js +++ b/exercises.js @@ -32,11 +32,16 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true function canVote(age){ if(age >= 18){ return true; + }else{ + return "hooo bruddha, cannot vote" } } console.log(canVote(21)); +var canVoteResults = canVote(12); +console.log(canVoteResults); + /* From 17bcb627dc5b39d09d7440537aa5cfd0719e425d Mon Sep 17 00:00:00 2001 From: Victor Lee Date: Mon, 9 Oct 2017 19:24:36 -1000 Subject: [PATCH 07/27] remove false comp --- exercises.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/exercises.js b/exercises.js index da5c6a7..b076807 100644 --- a/exercises.js +++ b/exercises.js @@ -39,8 +39,6 @@ function canVote(age){ } console.log(canVote(21)); -var canVoteResults = canVote(12); -console.log(canVoteResults); From b13afddd65f3c143e2be21619ec3f4252b9907cb Mon Sep 17 00:00:00 2001 From: Victor Lee Date: Mon, 6 Nov 2017 20:02:19 -1000 Subject: [PATCH 08/27] create canVote function --- exercises.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/exercises.js b/exercises.js index b076807..6053bca 100644 --- a/exercises.js +++ b/exercises.js @@ -30,15 +30,9 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true */ function canVote(age){ - if(age >= 18){ - return true; - }else{ - return "hooo bruddha, cannot vote" - } + } -console.log(canVote(21)); - From 674f577d22a14e0516805ccf88ac896dd5b4d169 Mon Sep 17 00:00:00 2001 From: madycakes Date: Fri, 6 Apr 2018 13:14:31 -1000 Subject: [PATCH 09/27] complete ex1 --- exercises.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/exercises.js b/exercises.js index 6053bca..d8be9b4 100644 --- a/exercises.js +++ b/exercises.js @@ -30,10 +30,13 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true */ function canVote(age){ + if(age >= 18){ + return true; + } - } +console.log(canVote(18)); /* From a74e4b78324e6c45e84852a9990c9b07b9b6bee6 Mon Sep 17 00:00:00 2001 From: madycakes Date: Fri, 6 Apr 2018 21:16:44 -1000 Subject: [PATCH 10/27] complete exercise 1 --- exercises.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/exercises.js b/exercises.js index d8be9b4..fb14d43 100644 --- a/exercises.js +++ b/exercises.js @@ -30,13 +30,12 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true */ function canVote(age){ - if(age >= 18){ - return true; - } - + if(age >=18){ + return true; + } } -console.log(canVote(18)); +console.log(canVote(19)); /* From 503ee3f49260dd48c264e2722ce4a046170a24f1 Mon Sep 17 00:00:00 2001 From: madycakes Date: Fri, 6 Apr 2018 21:23:43 -1000 Subject: [PATCH 11/27] add a console log --- exercises.js | 1 + 1 file changed, 1 insertion(+) diff --git a/exercises.js b/exercises.js index fb14d43..d9737d5 100644 --- a/exercises.js +++ b/exercises.js @@ -36,6 +36,7 @@ function canVote(age){ } console.log(canVote(19)); +console.log("yeah!") /* From b46b615d8c713bb26a245c1d0941823b55c68c35 Mon Sep 17 00:00:00 2001 From: madycakes Date: Fri, 8 Jun 2018 21:07:39 -1000 Subject: [PATCH 12/27] add console log --- exercises.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/exercises.js b/exercises.js index d9737d5..ce37582 100644 --- a/exercises.js +++ b/exercises.js @@ -29,14 +29,8 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true * The function will return true if the number passed into the function is equal to or greater than Hawaii's voting age. Console.log your result. */ -function canVote(age){ - if(age >=18){ - return true; - } -} +console.log('test'); -console.log(canVote(19)); -console.log("yeah!") /* From b18c2df84fcfb83a0af04113f88ab83701e288a8 Mon Sep 17 00:00:00 2001 From: madycakes Date: Fri, 8 Jun 2018 21:23:58 -1000 Subject: [PATCH 13/27] another console log --- exercises.js | 1 + 1 file changed, 1 insertion(+) diff --git a/exercises.js b/exercises.js index ce37582..6242e71 100644 --- a/exercises.js +++ b/exercises.js @@ -30,6 +30,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true */ console.log('test'); +console.log('another test'); From f9aae339e9938477ae71cf59b9ec54862cba03d6 Mon Sep 17 00:00:00 2001 From: madycakes Date: Mon, 11 Jun 2018 20:55:44 -1000 Subject: [PATCH 14/27] add console log --- exercises.js | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/exercises.js b/exercises.js index 6242e71..0a44399 100644 --- a/exercises.js +++ b/exercises.js @@ -17,6 +17,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true return "Get back to coding!"; };*/ +console.log('test') /* * #1 @@ -29,8 +30,6 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true * The function will return true if the number passed into the function is equal to or greater than Hawaii's voting age. Console.log your result. */ -console.log('test'); -console.log('another test'); @@ -88,7 +87,15 @@ console.log('another test'); * Console.log your result. */ +var word = 'cat' //global scope +console.log(word.length) +function bigBird(word){ + if(word.length === 3){ + return 'Word to Big Bird'; + } +} +console.log(bigBird('monkey')) /* * #6 @@ -218,6 +225,22 @@ console.log('another test'); * Invoke your function again. * Console.log budget and doughnutBought again. */ +var budget = 30; +var doughnutPrice = 5; +var doughnutBought = 0; + +function buyDoughnut(){ + if(budget >= doughnutPrice){ + budget -=doughnutPrice; // budget = budget - price + doughnutBought++; + } +} +buyDoughnut(); + +console.log('budget', budget); +console.log('donuts bought', doughnutBought); + + From eacb1391c13b118821d5f81c23a26b877ec8fbfa Mon Sep 17 00:00:00 2001 From: madycakes Date: Fri, 10 Aug 2018 20:05:26 -1000 Subject: [PATCH 15/27] added a console log --- exercises.js | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/exercises.js b/exercises.js index 0a44399..e068c4b 100644 --- a/exercises.js +++ b/exercises.js @@ -18,6 +18,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true };*/ console.log('test') +console.log('my first commit') /* * #1 @@ -90,12 +91,7 @@ console.log('test') var word = 'cat' //global scope console.log(word.length) -function bigBird(word){ - if(word.length === 3){ - return 'Word to Big Bird'; - } -} -console.log(bigBird('monkey')) + /* * #6 @@ -225,20 +221,7 @@ console.log(bigBird('monkey')) * Invoke your function again. * Console.log budget and doughnutBought again. */ -var budget = 30; -var doughnutPrice = 5; -var doughnutBought = 0; - -function buyDoughnut(){ - if(budget >= doughnutPrice){ - budget -=doughnutPrice; // budget = budget - price - doughnutBought++; - } -} -buyDoughnut(); -console.log('budget', budget); -console.log('donuts bought', doughnutBought); From 3d93476049eadc710187df3cb0b9eb02ff544d67 Mon Sep 17 00:00:00 2001 From: madycakes Date: Fri, 10 Aug 2018 20:11:12 -1000 Subject: [PATCH 16/27] second commit --- exercises.js | 1 + 1 file changed, 1 insertion(+) diff --git a/exercises.js b/exercises.js index e068c4b..54ffc8e 100644 --- a/exercises.js +++ b/exercises.js @@ -19,6 +19,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true console.log('test') console.log('my first commit') +console.log('my second commit') /* * #1 From 2bda75360bb1853cea92f4e4f70ec40af2f85ebf Mon Sep 17 00:00:00 2001 From: madycakes Date: Fri, 5 Oct 2018 19:44:09 -1000 Subject: [PATCH 17/27] added canvote function --- exercises.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/exercises.js b/exercises.js index 54ffc8e..9949e2f 100644 --- a/exercises.js +++ b/exercises.js @@ -17,9 +17,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true return "Get back to coding!"; };*/ -console.log('test') -console.log('my first commit') -console.log('my second commit') + /* * #1 @@ -32,7 +30,10 @@ console.log('my second commit') * The function will return true if the number passed into the function is equal to or greater than Hawaii's voting age. Console.log your result. */ +function canVote(){ + +} /* From dac06ffbf5b0f260cdf71dffd7423ece95dc1f23 Mon Sep 17 00:00:00 2001 From: madycakes Date: Fri, 5 Oct 2018 21:18:57 -1000 Subject: [PATCH 18/27] complete ex1 --- exercises.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/exercises.js b/exercises.js index 9949e2f..43606ce 100644 --- a/exercises.js +++ b/exercises.js @@ -29,12 +29,15 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true * * The function will return true if the number passed into the function is equal to or greater than Hawaii's voting age. Console.log your result. */ +function canVote(age){ + if(age >= 18){ + return true; + } -function canVote(){ - - } +console.log('can vote results', canVote(18)) + /* * #2 From cf5b701e04a25ecb7fbdb0854dbe5f2a37173557 Mon Sep 17 00:00:00 2001 From: madycakes Date: Fri, 5 Oct 2018 21:23:35 -1000 Subject: [PATCH 19/27] add console log --- exercises.js | 1 + 1 file changed, 1 insertion(+) diff --git a/exercises.js b/exercises.js index 43606ce..f0f57c1 100644 --- a/exercises.js +++ b/exercises.js @@ -37,6 +37,7 @@ function canVote(age){ } console.log('can vote results', canVote(18)) +console.log('test') /* From 53894231faa5c9af0dbf5c6c22e32b66e27622d7 Mon Sep 17 00:00:00 2001 From: madycakes Date: Mon, 8 Oct 2018 19:05:09 -1000 Subject: [PATCH 20/27] pau no 2 --- exercises.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/exercises.js b/exercises.js index f0f57c1..ca70703 100644 --- a/exercises.js +++ b/exercises.js @@ -52,7 +52,15 @@ console.log('test') * Console.log your result. */ +function login(password){ + if(password === 'test1234'){ + return 'Login Success!!!!!'; + }else{ + return 'get outta hea with 7 bangs!!!!!!!!!!!!!!' + } +} +console.log(login('test12345')) /* * #3 * Function - isGreaterThan From 9817aff7b9e9a69f0c4e422df34d22101b0a6300 Mon Sep 17 00:00:00 2001 From: madycakes Date: Fri, 9 Nov 2018 19:28:07 -1000 Subject: [PATCH 21/27] add console log --- exercises.js | 1 + 1 file changed, 1 insertion(+) diff --git a/exercises.js b/exercises.js index ca70703..8c33638 100644 --- a/exercises.js +++ b/exercises.js @@ -17,6 +17,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true return "Get back to coding!"; };*/ +console.log('Happy Alooooha Friday!'); /* From ee3e9dba53c3a5eacad1a622c913eaecdb74a443 Mon Sep 17 00:00:00 2001 From: madycakes Date: Fri, 9 Nov 2018 19:35:29 -1000 Subject: [PATCH 22/27] add day variable --- exercises.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exercises.js b/exercises.js index 8c33638..bd813d2 100644 --- a/exercises.js +++ b/exercises.js @@ -19,6 +19,8 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true console.log('Happy Alooooha Friday!'); +var day = 'Friday!'; + /* * #1 From dfe40e958d6a8b61c9437e0c0c81c503c0dcfc9f Mon Sep 17 00:00:00 2001 From: madycakes Date: Fri, 9 Nov 2018 19:43:40 -1000 Subject: [PATCH 23/27] add event variable --- exercises.js | 1 + 1 file changed, 1 insertion(+) diff --git a/exercises.js b/exercises.js index bd813d2..d0c5459 100644 --- a/exercises.js +++ b/exercises.js @@ -20,6 +20,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true console.log('Happy Alooooha Friday!'); var day = 'Friday!'; +var event = 'Backyard BBQ at Kakaako' /* From f24849b0cb8521c04c4dad6226d83989ec1035d1 Mon Sep 17 00:00:00 2001 From: madycakes Date: Fri, 11 Jan 2019 21:13:13 -1000 Subject: [PATCH 24/27] our first commit --- exercises.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/exercises.js b/exercises.js index d0c5459..8400974 100644 --- a/exercises.js +++ b/exercises.js @@ -11,16 +11,9 @@ if(today === "Friday"){ If/else statements = Evaluates (or checks) a condition. If the condition is true, the first code block is executed. If the condition is false, the second code block is executed instead. */ -/*if(today === "Friday"){ - return "Let's Party!"; -}else{ - return "Get back to coding!"; -};*/ +console.log('hello world') -console.log('Happy Alooooha Friday!'); -var day = 'Friday!'; -var event = 'Backyard BBQ at Kakaako' /* From f50123d82dbc108f1e3d4265bfa66855aed2d496 Mon Sep 17 00:00:00 2001 From: madycakes Date: Fri, 11 Jan 2019 21:21:55 -1000 Subject: [PATCH 25/27] hana hou cuz --- exercises.js | 1 + 1 file changed, 1 insertion(+) diff --git a/exercises.js b/exercises.js index 8400974..2c037cf 100644 --- a/exercises.js +++ b/exercises.js @@ -12,6 +12,7 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true */ console.log('hello world') +console.log('another test') From ca9b9b12360557534a05ff0cdcbccd1613310491 Mon Sep 17 00:00:00 2001 From: madycakes Date: Mon, 11 Feb 2019 19:06:00 -1000 Subject: [PATCH 26/27] refactor final boss --- solutions.js | 33 ++++++++++++--------------------- 1 file changed, 12 insertions(+), 21 deletions(-) diff --git a/solutions.js b/solutions.js index 23a55f0..9daef0a 100644 --- a/solutions.js +++ b/solutions.js @@ -479,29 +479,20 @@ Final Boss */ var phrase = "An apple a day keeps Alice feeling awesome!"; - - function removeLetter(str){ - var newArr = []; - for(var i = 0; i Date: Fri, 10 May 2019 21:44:21 -1000 Subject: [PATCH 27/27] practice --- exercises.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/exercises.js b/exercises.js index 2c037cf..76768a7 100644 --- a/exercises.js +++ b/exercises.js @@ -11,8 +11,7 @@ if(today === "Friday"){ If/else statements = Evaluates (or checks) a condition. If the condition is true, the first code block is executed. If the condition is false, the second code block is executed instead. */ -console.log('hello world') -console.log('another test') +console.log('test') @@ -27,15 +26,7 @@ console.log('another test') * * The function will return true if the number passed into the function is equal to or greater than Hawaii's voting age. Console.log your result. */ -function canVote(age){ - if(age >= 18){ - return true; - } -} - -console.log('can vote results', canVote(18)) -console.log('test') /*