From 398672a2e171f7d46b9ba95db50a5c559db1b984 Mon Sep 17 00:00:00 2001 From: Jayshree Upadhyay <51030227+Jaaishri@users.noreply.github.com> Date: Wed, 18 Aug 2021 21:53:49 +0200 Subject: [PATCH 01/14] Update app.js --- Week1/homework/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Week1/homework/app.js b/Week1/homework/app.js index a9b5f75d8..c0f9d08db 100644 --- a/Week1/homework/app.js +++ b/Week1/homework/app.js @@ -1,4 +1,4 @@ -'use strict'; + { const bookTitles = [ From 71de81a265d9c9cf4088f3c7a6fec230dc1bc667 Mon Sep 17 00:00:00 2001 From: Jayshree Upadhyay <51030227+Jaaishri@users.noreply.github.com> Date: Wed, 18 Aug 2021 21:54:04 +0200 Subject: [PATCH 02/14] Update app.js --- Week1/homework/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Week1/homework/app.js b/Week1/homework/app.js index c0f9d08db..fb824905d 100644 --- a/Week1/homework/app.js +++ b/Week1/homework/app.js @@ -1,5 +1,5 @@ - +'use strict'; { const bookTitles = [ // Replace with your own book titles From a1e848118e01cf4536035076cc658b51589f230c Mon Sep 17 00:00:00 2001 From: Jayshree Upadhyay <51030227+Jaaishri@users.noreply.github.com> Date: Wed, 18 Aug 2021 21:54:24 +0200 Subject: [PATCH 03/14] Update app.js --- Week1/homework/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Week1/homework/app.js b/Week1/homework/app.js index fb824905d..ee34e4a89 100644 --- a/Week1/homework/app.js +++ b/Week1/homework/app.js @@ -1,7 +1,7 @@ 'use strict'; { - const bookTitles = [ + // Replace with your own book titles 'harry_potter_chamber_secrets', ]; From 467b7af4df99fdd6f1feab80bdbe818906adbf97 Mon Sep 17 00:00:00 2001 From: Jayshree Upadhyay <51030227+Jaaishri@users.noreply.github.com> Date: Wed, 18 Aug 2021 21:54:39 +0200 Subject: [PATCH 04/14] Update app.js --- Week1/homework/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Week1/homework/app.js b/Week1/homework/app.js index ee34e4a89..fb824905d 100644 --- a/Week1/homework/app.js +++ b/Week1/homework/app.js @@ -1,7 +1,7 @@ 'use strict'; { - + const bookTitles = [ // Replace with your own book titles 'harry_potter_chamber_secrets', ]; From c2111a86517ebd3d8d971a1002592f76ec546c0f Mon Sep 17 00:00:00 2001 From: Jayshree Upadhyay <51030227+Jaaishri@users.noreply.github.com> Date: Thu, 9 Sep 2021 09:14:22 +0200 Subject: [PATCH 05/14] Update step2-6.js --- Week3/homework/step2-6.js | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/Week3/homework/step2-6.js b/Week3/homework/step2-6.js index ffe95b9f7..8b1378917 100644 --- a/Week3/homework/step2-6.js +++ b/Week3/homework/step2-6.js @@ -1,23 +1 @@ -'use strict'; -const arr2d = [[1, 2], [3, 4], [5, 6]]; -const arr3d = [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]; - -function flattenArray2d(arr) { - // Replace this comment and the next line with your code - console.log(arr); -} - -function flattenArray3d(arr) { - // Replace this comment and the next line with your code - console.log(arr); -} - -console.log(flattenArray2d(arr2d)); // -> [1, 2, 3, 4, 5, 6] -console.log(flattenArray3d(arr3d)); // -> [1, 2, 3, 4, 5, 6, 7, 8] - -// Do not change or remove anything below this line -module.exports = { - flattenArray2d, - flattenArray3d, -}; From ad99fc493352f7bde3ab1c6a89fa4c8fb4ec5461 Mon Sep 17 00:00:00 2001 From: Jayshree Upadhyay <51030227+Jaaishri@users.noreply.github.com> Date: Thu, 9 Sep 2021 09:14:35 +0200 Subject: [PATCH 06/14] Update step2-6.js --- Week3/homework/step2-6.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Week3/homework/step2-6.js b/Week3/homework/step2-6.js index 8b1378917..8b5e3b881 100644 --- a/Week3/homework/step2-6.js +++ b/Week3/homework/step2-6.js @@ -1 +1,24 @@ +'use strict'; + +const arr2d = [[1, 2], [3, 4], [5, 6]]; +const arr3d = [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]; + +function flattenArray2d(arr) { + // Replace this comment and the next line with your code + console.log(arr); +} + +function flattenArray3d(arr) { + // Replace this comment and the next line with your code + console.log(arr); +} + +console.log(flattenArray2d(arr2d)); // -> [1, 2, 3, 4, 5, 6] +console.log(flattenArray3d(arr3d)); // -> [1, 2, 3, 4, 5, 6, 7, 8] + +// Do not change or remove anything below this line +module.exports = { + flattenArray2d, + flattenArray3d, +}; From b67f5a32954a783e60e40bfb650893d44ae795c2 Mon Sep 17 00:00:00 2001 From: Jayshree Upadhyay <51030227+Jaaishri@users.noreply.github.com> Date: Thu, 9 Sep 2021 09:14:50 +0200 Subject: [PATCH 07/14] Update step2-2.js --- Week3/homework/step2-2.js | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/Week3/homework/step2-2.js b/Week3/homework/step2-2.js index dcd135040..8b1378917 100644 --- a/Week3/homework/step2-2.js +++ b/Week3/homework/step2-2.js @@ -1,23 +1 @@ -'use strict'; -function threeFive(startIndex, stopIndex, threeCallback, fiveCallback) { - const numbers = []; - - // Replace this comment and the next line with your code - console.log(startIndex, stopIndex, threeCallback, fiveCallback, numbers); -} - -function sayThree(number) { - // Replace this comment and the next line with your code - console.log(number); -} - -function sayFive(number) { - // Replace this comment and the next line with your code - console.log(number); -} - -threeFive(10, 15, sayThree, sayFive); - -// Do not change or remove anything below this line -module.exports = threeFive; From 64a815f46315a69f05f1de06e66fa9771cc6d8b9 Mon Sep 17 00:00:00 2001 From: Jayshree Upadhyay <51030227+Jaaishri@users.noreply.github.com> Date: Thu, 9 Sep 2021 09:15:01 +0200 Subject: [PATCH 08/14] Update step2-2.js --- Week3/homework/step2-2.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Week3/homework/step2-2.js b/Week3/homework/step2-2.js index 8b1378917..4f6d8ceb7 100644 --- a/Week3/homework/step2-2.js +++ b/Week3/homework/step2-2.js @@ -1 +1,24 @@ +'use strict'; + +function threeFive(startIndex, stopIndex, threeCallback, fiveCallback) { + const numbers = []; + + // Replace this comment and the next line with your code + console.log(startIndex, stopIndex, threeCallback, fiveCallback, numbers); +} + +function sayThree(number) { + // Replace this comment and the next line with your code + console.log(number); +} + +function sayFive(number) { + // Replace this comment and the next line with your code + console.log(number); +} + +threeFive(10, 15, sayThree, sayFive); + +// Do not change or remove anything below this line +module.exports = threeFive; From ebc180b50c4ae3824515fcb9d80caf4ae57ba528 Mon Sep 17 00:00:00 2001 From: Jayshree Upadhyay <51030227+Jaaishri@users.noreply.github.com> Date: Mon, 13 Sep 2021 12:11:46 +0200 Subject: [PATCH 09/14] Update step2-1.js --- Week3/homework/step2-1.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/Week3/homework/step2-1.js b/Week3/homework/step2-1.js index d5699882c..8b1378917 100644 --- a/Week3/homework/step2-1.js +++ b/Week3/homework/step2-1.js @@ -1,16 +1 @@ -'use strict'; -function foo(func) { - // What to do here? - // Replace this comment and the next line with your code - console.log(func); -} - -function bar() { - console.log('Hello, I am bar!'); -} - -foo(bar); - -// Do not change or remove anything below this line -module.exports = foo; From 420748efbc568382d5610dc6f48e105885309dd5 Mon Sep 17 00:00:00 2001 From: Jayshree Upadhyay <51030227+Jaaishri@users.noreply.github.com> Date: Mon, 13 Sep 2021 12:12:01 +0200 Subject: [PATCH 10/14] Update step2-1.js --- Week3/homework/step2-1.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Week3/homework/step2-1.js b/Week3/homework/step2-1.js index 8b1378917..7d3adc68e 100644 --- a/Week3/homework/step2-1.js +++ b/Week3/homework/step2-1.js @@ -1 +1,17 @@ +'use strict'; + +function foo(func) { + // What to do here? + // Replace this comment and the next line with your code + console.log(func); +} + +function bar() { + console.log('Hello, I am bar!'); +} + +foo(bar); + +// Do not change or remove anything below this line +module.exports = foo; From 108889c1c8a61001283fac77357fe22ec37c058b Mon Sep 17 00:00:00 2001 From: Jayshree Upadhyay <51030227+Jaaishri@users.noreply.github.com> Date: Thu, 7 Oct 2021 08:31:25 +0200 Subject: [PATCH 11/14] Update step2-1.js --- Week3/homework/step2-1.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Week3/homework/step2-1.js b/Week3/homework/step2-1.js index 7d3adc68e..8b1378917 100644 --- a/Week3/homework/step2-1.js +++ b/Week3/homework/step2-1.js @@ -1,17 +1 @@ -'use strict'; - -function foo(func) { - // What to do here? - // Replace this comment and the next line with your code - console.log(func); -} - -function bar() { - console.log('Hello, I am bar!'); -} - -foo(bar); - -// Do not change or remove anything below this line -module.exports = foo; From 3c1346e03c510bcfd69c8d3081506d7d461ff347 Mon Sep 17 00:00:00 2001 From: Jayshree Upadhyay <51030227+Jaaishri@users.noreply.github.com> Date: Thu, 7 Oct 2021 08:31:35 +0200 Subject: [PATCH 12/14] Update step2-1.js --- Week3/homework/step2-1.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Week3/homework/step2-1.js b/Week3/homework/step2-1.js index 8b1378917..4434af7c1 100644 --- a/Week3/homework/step2-1.js +++ b/Week3/homework/step2-1.js @@ -1 +1,18 @@ +'use strict'; + +function foo(func) { + // What to do here? + // Replace this comment and the next line with your code + console.log(func); +} + +function bar() { + console.log('Hello, I am bar!'); +} + +foo(bar); + +// Do not change or remove anything below this line +module.exports = foo; + From 0219f85066ebae117326b5bc0e9bbd5c9c773f57 Mon Sep 17 00:00:00 2001 From: Jayshree Upadhyay <51030227+Jaaishri@users.noreply.github.com> Date: Thu, 7 Oct 2021 08:31:58 +0200 Subject: [PATCH 13/14] Update style.css --- Week1/homework/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Week1/homework/style.css b/Week1/homework/style.css index bab13ec23..8b1378917 100644 --- a/Week1/homework/style.css +++ b/Week1/homework/style.css @@ -1 +1 @@ -/* add your styling here */ \ No newline at end of file + From 660b8cc612e442d5b275f2326ea40082d80c12e8 Mon Sep 17 00:00:00 2001 From: Jayshree Upadhyay <51030227+Jaaishri@users.noreply.github.com> Date: Thu, 7 Oct 2021 08:32:10 +0200 Subject: [PATCH 14/14] Update style.css --- Week1/homework/style.css | 1 + 1 file changed, 1 insertion(+) diff --git a/Week1/homework/style.css b/Week1/homework/style.css index 8b1378917..8f0f0b96a 100644 --- a/Week1/homework/style.css +++ b/Week1/homework/style.css @@ -1 +1,2 @@ +/* add your styling here */