Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f37d9e9

Browse files
author
Noer Paanakker
committed
Removed final step week 1 final exercise, rewrote exercise week 3
1 parent 22790e4 commit f37d9e9

File tree

5 files changed

+12
-14
lines changed

5 files changed

+12
-14
lines changed

Week1/MAKEME.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,9 @@ Start with this webpage, which has a single img tag of an animated GIF of a cat
123123

124124
1. Create a variable to store a reference to the `<img>`.
125125
2. Change the style of the `<img>` to have a "left" of "0px", so that it starts at the left hand of the screens.
126-
3. Create a function called catWalk() that moves the cat 10 pixels to the right of where it started, by changing the "left" style property.
127-
4. Call that function every 50 milliseconds. Your cat should now be moving across the screen from left to right.
126+
3. Create a function called `catWalk()` that moves the cat 10 pixels to the right of where it started, by changing the "left" style property.
127+
4. Call that function every **50 milliseconds**. Your cat should now be moving across the screen from left to right.
128128
5. When the cat reaches the right-hand of the screen, restart them at the left hand side ("0px"). So they should keep walking from left to right across the screen, forever and ever.
129-
6. When the cat reaches the middle of the screen, replace the `<img>` with an image of a cat dancing (use this URL: https://tenor.com/StFI.gif), keep it dancing for 5 seconds, and then replace the `<img>` with the original image and have it continue the walk.
130-
131-
Expected result should look and behave similar to [https://dancingcat-sandbox.mxapps.io](https://dancingcat-sandbox.mxapps.io)
132129

133130
## **3. Code along**
134131

Week1/js-exercises/ex5-catWalk.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@
88
3. Create a function called catWalk() that moves the cat 10 pixels to the right of where it started, by changing the "left" style property.
99
4. Call that function every 50 milliseconds.Your cat should now be moving across the screen from left to right.Hurrah!
1010
5. When the cat reaches the right - hand of the screen, restart them at the left hand side("0px").So they should keep walking from left to right across the screen, forever and ever.
11-
6. When the cat reaches the middle of the screen, replace the img with an image of a cat dancing(use this URL: https: //tenor.com/StFI.gif), keep it dancing for 5 seconds, and then replace the img with the original image and have it continue the walk.
1211
13-
*/
12+
*/

Week2/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function higherOrderFunction(anotherFunction) {
6060

6161
// Example 2
6262
function anotherHigherOrderFunction() {
63-
return function () {
63+
return function() {
6464
return;
6565
};
6666
}

Week3/MAKEME.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ addSix(4); // Returns the number 10
4242
We don't like repetition in our array of letters. Let's remove them!
4343

4444
1. Write a function called `removeDuplicates`
45-
2. It takes one argument: the following array:
45+
2. It takes one argument, the following array:
4646

4747
```js
4848
const letters = ['a', 'b', 'b', 'c', 'd', 'a', 'e', 'f', 'f', 'c', 'b'];
4949
```
5050

51-
3. Write logic that looks into the array and removes duplicates
52-
4. Return the modified array without the duplicates
51+
3. Use an array function that takes out the duplicates
52+
4. Return the new, modified array without the duplicates
5353

5454
Expected output:
5555

Week3/js-exercises/ex2-RemoveDuplicates.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
** Exercise 2: The lottery machine **
44
55
1. Write a function called `removeDuplicates`
6-
2. It takes one argument: the following array:
6+
2. It takes one argument, the following array:
77
8+
```js
89
const letters = ['a', 'b', 'b', 'c', 'd', 'a', 'e', 'f', 'f', 'c', 'b'];
10+
```
911
10-
3. Write logic that looks into the array and removes duplicates
11-
4. Return the modified array without the duplicates
12+
3. Use an array function that takes out the duplicates
13+
4. Return the new, modified array without the duplicates
1214
1315
*/
1416

0 commit comments

Comments
 (0)