diff --git a/Week3/MAKEME.md b/Week3/MAKEME.md index 095b3f425..8358b96fa 100644 --- a/Week3/MAKEME.md +++ b/Week3/MAKEME.md @@ -10,7 +10,7 @@ Topics discussed in class this week: • Functions ``` ->[Here](/Week2/README.md) you find the readings you have to complete before the third lecture. +>[Here](/Week3/README.md) you find the readings you have to complete before the third lecture. ## Step 0: Feedback @@ -126,11 +126,6 @@ let favoriteAnimals = ['blowfish', 'capricorn', 'giraffe']; > Don't cheat! Seriously - try it first. - Check out this [Fiddle](http://jsfiddle.net/jimschubert/85M4z/). You need to open your browser’s Developer Tools to see the console output. Press the Run button in the upper right corner to run the code. - - More insights from this [Stack Overflow question](http://stackoverflow.com/questions/22395357/how-to-compare-two-arrays-are-equal-using-javascript). - - 16. Take a look at the following code: ```js @@ -171,7 +166,7 @@ Please make sure you REALLY understand the exercises below: _Deadline Sunday morning_ -Go trough the reading material in the [README.md](/Week2/README.md) to prepare for your next class +Go trough the reading material in the [README.md](/Week3/README.md) to prepare for your next class ``` How to hand in your homework: diff --git a/Week5/MAKEME.md b/Week5/MAKEME.md index baa6211ac..4828973b5 100644 --- a/Week5/MAKEME.md +++ b/Week5/MAKEME.md @@ -98,7 +98,6 @@ let tasks = monday.concat(tuesday); - Output a formatted Euro amount. - Don't forget to use `=>` - ## Step 3: ROVER Finish up to chapter 7: JSON on [roverjs.com](http://roverjs.com/)! diff --git a/Week6/MAKEME.md b/Week6/MAKEME.md index 26b102c25..3123512ca 100644 --- a/Week6/MAKEME.md +++ b/Week6/MAKEME.md @@ -9,15 +9,19 @@ Topics discussed this week: >[Here](/Week6/README.md) you find the readings you have to complete before the seventh lecture. -## Step 1: Feedback +## Step 1: Git Homework +[Go through the Git repository](https://github.com/HackYourFuture/Git/blob/master/Lecture-3.md). For handing in homework and follow the Forking workflow that is described in our lecture-3.md file of HackYourFuture’s Git repository (there is also a video that explains this). -_Deadline Monday_ + +## Step 2: Feedback Give feedback on `step 2` of `week 5` to one of your fellow students (do this by creating issues in Github). -## Step 2: Git Homework -[Make these assignments](https://github.com/HackYourFuture/Git/blob/master/Lecture-3.md). For handing in homework follow the Forking workflow that is described in our lecture-3.md file of HackYourFuture’s Git repository (there is also a video that explains this). +_Deadline Monday_ + +Give feedback on `step 2` of `week 5` to one of your fellow students (do this by creating a pull request suggesting changes/improvements in Github). +Read through the git repository linked above to see a recap of what was covered in class this week ## Step 3: Read @@ -34,19 +38,8 @@ Give feedback on `step 2` of `week 5` to one of your fellow students (do this by _Deadline Wednesday_ -1\.We saw that we can pass functions as arguments to other functions. Your task is to write a function that takes another function as an argument and runs it. - function foo(func) { - // What to do here? - } - - function bar() { - console.log('Hello, I am bar!'); - } - - foo(bar); - -2\.We learned a little bit about callbacks in JS. A callback is simply a function passed to another function that gets executed (run) after a potentially long running operation has completed. There is another function called `setTimeout` that will wait a specified period of time and then execute a function. For example: +1\. We learned a little bit about callbacks in JS. A callback is simply a function passed to another function that gets executed (run) after a potentially long running operation has completed. There is another function called `setTimeout` that will wait a specified period of time and then execute a function. For example: ```js function doIt() { @@ -65,10 +58,12 @@ You must write a function that takes 4 arguments. The function should generate an array containing values from start value to end value (inclusive). + Then the function should iterate over the array and call the first callback if the array value is divisible by 3 The function should call the second callback if the array value is divisible by 5 + Both functions should be called if the array value is divisible by both 3 and 5 ```js @@ -83,26 +78,25 @@ threeFive(10, 15, sayThree, sayFive); // and call sayFive, sayThree, sayThree, sayFive - please make sure you see why these calls are made before you start coding ``` - -3\. Please solve this problem using: +2\. Please solve this problem using: https://www.freecodecamp.com/challenges/repeat-a-string-repeat-a-string -3\.1 A for loop. -3\.2 A while loop. -3\.3 A do loop. +2\.1 A for loop. +2\.2 A while loop. +2\.3 A do loop. -4\. Some practice with objects +3\. Some practice with objects https://www.freecodecamp.com/challenges/construct-javascript-objects-with-functions -5\. Nested loops +4\. Nested loops https://www.freecodecamp.com/challenges/nesting-for-loops -6\. We did some work with arrays - `var arr = [1,2,3]` +5\. We did some work with arrays - `var arr = [1,2,3]` We can also nest arrays inside arrays like this `var arr2d = [[1,2], [3,4], [5,6]]` (for math people you can think of this as a matrix) How would you print all the items of an array with 3 dimensions? How about with K dimensions? What if you didn't know how deep the array was nested? (You don't have to write code for this but think about it) -7\. Here are two functions that look like they do the something similar but they print different results. Please explain what's going on here. +6\. Here are two functions that look like they do the something similar but they print different results. Please explain what's going on here. ```js let x = 9; @@ -125,22 +119,7 @@ console.log(y); If you are confused please run the code and then consult the Google for "javaScript pass by value pass by reference" -## Step 5: Scope and Closures - -> Let's continue to learn a little more about scope and Closures. - - -1. Write a function that would allow you to do this: -```js -let addSix = createBase(6); -addSix(10); // returns 16 -addSix(21); // returns 27 -``` - -__Bonus__: Write a function takes this array `['a', 'b', 'c', 'd', 'a', 'e', 'f', 'c']` and returns an array which only has unique values in it (so it removes the duplicate ones). Make it a 'smart' algorithm that could do it for every array (only strings/number). Try to make it as fast as possible! - - -## Step 6: Read before next lecture +## Step 4: Read before next lecture _Deadline Sunday morning_ diff --git a/Week7/MAKEME.md b/Week7/MAKEME.md index f23e404fc..bb0f84e2a 100644 --- a/Week7/MAKEME.md +++ b/Week7/MAKEME.md @@ -34,6 +34,7 @@ _Deadline Saturday_ Let's practice working with Objects and Arrays. Go to FreeCodeCamp and complete all challenges under "Object Oriented and Functional Programming" and the _first four challenges_ under "Basic Algorithm Scripting", up until 'Find the longest word in a string.' + ## Step 5: Async challenge 1. Rewrite the code below to Async: @@ -64,7 +65,6 @@ data = data.map(function (x) { return x * 8; }); writeDataToFile(data); ``` - ## Step 6: Some more JavaScript _Deadline Saturday_ diff --git a/Week9/MAKEME.md b/Week9/MAKEME.md index cf8f89286..ca18089ee 100644 --- a/Week9/MAKEME.md +++ b/Week9/MAKEME.md @@ -7,7 +7,6 @@ Topics discussed this week: ``` ## Step 1: Read - - If you need to refresh your memory on es6 classes: [es6-classes-in-depth](https://ponyfoo.com/articles/es6-classes-in-depth) - Also read this article on scopes & closures: [explaining-javascript-scope-and-closures](https://robertnyman.com/2008/10/09/explaining-javascript-scope-and-closures/) @@ -27,6 +26,7 @@ So please: - Follow the instructions in the REAME.md of the above repository - To hand in your homework you make a PR to the existing repository + ## Step 4: Read before next lecture _Deadline Sunday morning_ @@ -34,3 +34,4 @@ _Deadline Sunday morning_ Go trough the reading material in the [README.md](/Week9/README.md) to prepare for your next class > To hand in your homework, make a pull request to the original repository you forked from. Remember, our master branches are protected, you cannot push to a directly cloned repository you first have to make a fork to your own Github. +