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

Skip to content

Commit 73b5fa4

Browse files
author
Samir Aleido
committed
🎨 style: Clean whitespaces
1 parent 9a15e40 commit 73b5fa4

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

Week3/MAKEME.md

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -36,57 +36,57 @@ Provide feedback to the homework of last week to one of your fellow students. Yo
3636
- [Loops (for/while)](../fundamentals/loops.md)
3737
- [Functions](../fundamentals/functions.md)
3838
- [Scope](../fundamentals/scope.md)
39-
39+
4040
## Step 2: Watch
4141

42-
1. If you haven't done already, watch: [What is programming](https://www.khanacademy.org/computing/computer-programming/programming/intro-to-programming/v/programming-intro)
42+
1. If you haven't done already, watch: [What is programming](https://www.khanacademy.org/computing/computer-programming/programming/intro-to-programming/v/programming-intro)
4343
Just watch the 2 min video, you do not have to do the entire JavaScript course (It could be useful later on though).
4444

45-
2. Please watch the following parts of the course, [Programming Foundations Fundamentals](https://www.lynda.com/Programming-Foundations-tutorials/Welcome/83603/90426-4.html) on Lynda.com (if you don't have access to Lynda yet ask Gijs):
45+
2. Please watch the following parts of the course, [Programming Foundations Fundamentals](https://www.lynda.com/Programming-Foundations-tutorials/Welcome/83603/90426-4.html) on Lynda.com (if you don't have access to Lynda yet ask Gijs):
4646
<br>**4. Writing Conditional Code**
4747
<br>**5. Modular Code**
4848
<br>**6. Iteration: Writing Loops**
4949
<br>**7. More About Strings**
5050
<br>**8. Collections**
51-
<br>**11. When Things Go Wrong**
51+
<br>**11. When Things Go Wrong**
5252

53-
## Step 3: Rover the Robot
53+
## Step 3: Rover the Robot
5454

55-
Go and try out this cool game: [roverjs.com](http://roverjs.com), written by one of our HYF teachers, Joost Lubach. There are different levels, see how far you can get!
55+
Go and try out this cool game: [roverjs.com](http://roverjs.com), written by one of our HYF teachers, Joost Lubach. There are different levels, see how far you can get!
5656

5757
## Step 4: String and Array challenges
5858

59-
_Deadline Wednesday_
59+
_Deadline Wednesday_
6060

6161
> For all the following exercises create a new .js file. Try to find a proper name for each file or make a small comment about what it does inside for future reference
6262
6363
*IMPORTANT NOTE*
6464
In each assignment write at least two `console.log` statements to verify if your code works correctly. In other words proof that you code works as expected. If you need inspiration look at the steps defined in the assignments from last week.
6565

66-
1\. **Strings!**
67-
1\.1 Let's consider the following string: `let myString = "hello,this,is,a,difficult,to,read,sentence"`
68-
1\.2 Add the string to your file and console.log it.
69-
1\.4 Console.log the length of `myString`.
70-
1\.5 The commas make that the sentence is quite hard to read. Find a way to remove the comma's from the sting and replace them with a spaces
71-
1\.6 Console.log `myString` to see if you succeeded.
66+
1\. **Strings!**
67+
1\.1 Let's consider the following string: `let myString = "hello,this,is,a,difficult,to,read,sentence"`
68+
1\.2 Add the string to your file and console.log it.
69+
1\.4 Console.log the length of `myString`.
70+
1\.5 The commas make that the sentence is quite hard to read. Find a way to remove the comma's from the sting and replace them with a spaces
71+
1\.6 Console.log `myString` to see if you succeeded.
7272

73-
2\. **Arrays!**
73+
2\. **Arrays!**
7474

7575
Consider the following array:
7676

7777
```js
7878
let favoriteAnimals = ['blowfish', 'capricorn', 'giraffe'];
7979
```
8080

81-
2\.1 Add a statement that adds Mauro's favorite animal ('turtle') to the existing array
82-
2\.2 Log your new array!
83-
2\.3 Now add Jim's favorite animal to the array, its a 'meerkat', but make sure it will be placed after 'blowfish' and before 'capricorn'.
84-
2\.4 Write a console.log statement that explains in words _you think_ the new value of the array is.
85-
2\.5 Log your new new array!
86-
2\.6 Log the length of the array, add a message: "The array has a length of: "(here you should show the length of the array)
87-
2\.7 Jason does not like giraffes, delete this animal from the array
88-
2\.8 Again log your new array.
89-
2\.9 Now if unlike Jim, you don't like meerkats and you want to delete it from the array, but you don't know the position or the `index` of the item in the array, how can you find it?
81+
2\.1 Add a statement that adds Mauro's favorite animal ('turtle') to the existing array
82+
2\.2 Log your new array!
83+
2\.3 Now add Jim's favorite animal to the array, its a 'meerkat', but make sure it will be placed after 'blowfish' and before 'capricorn'.
84+
2\.4 Write a console.log statement that explains in words _you think_ the new value of the array is.
85+
2\.5 Log your new new array!
86+
2\.6 Log the length of the array, add a message: "The array has a length of: "(here you should show the length of the array)
87+
2\.7 Jason does not like giraffes, delete this animal from the array
88+
2\.8 Again log your new array.
89+
2\.9 Now if unlike Jim, you don't like meerkats and you want to delete it from the array, but you don't know the position or the `index` of the item in the array, how can you find it?
9090
2\.10 Log the index of meerkat to the console. Add a message so it says: "The item you are looking for is at index: " (here you should show the index of the item)
9191

9292
## More JavaScript :tada:
@@ -130,24 +130,24 @@ let favoriteAnimals = ['blowfish', 'capricorn', 'giraffe'];
130130
14. Add a property to the object you just created that contains the languages that they have taught you.
131131

132132
15. Write some code to test two arrays for equality using `==` and `===`. Test the following:
133-
133+
134134
```js
135135
let x = [1,2,3];
136136
let y = [1,2,3];
137137
let z = y;
138138
```
139139

140140
What do you think will happen with `x == y`, `x === y` and `z == y` and `z == x`? Prove it!
141-
141+
142142
> Don't cheat! Seriously - try it first.
143-
143+
144144

145145
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.
146146

147147
More insights from this [Stack Overflow question](http://stackoverflow.com/questions/22395357/how-to-compare-two-arrays-are-equal-using-javascript).
148148

149149

150-
16. Take a look at the following code:
150+
16. Take a look at the following code:
151151

152152
```js
153153
let o1 = { foo: 'bar' };
@@ -156,19 +156,19 @@ let favoriteAnimals = ['blowfish', 'capricorn', 'giraffe'];
156156

157157
```
158158

159-
Show that changing `o2` changes `o3` (or not) and changing `o1` changes `o3`(or not).
160-
159+
Show that changing `o2` changes `o3` (or not) and changing `o1` changes `o3`(or not).
160+
161161
Does the order that you assign (`o3 = o2` or `o2 = o3`) matter?
162162

163163
17. What does the following code return? (And why?)
164164

165165
```js
166-
let bar = 42;
166+
let bar = 42;
167167
typeof typeof bar;
168168
```
169169

170-
171-
> ‘Coerce' means to try to change - so coercing `var x = '6'` to number means trying to change the type to number temporarily.
170+
171+
> ‘Coerce' means to try to change - so coercing `var x = '6'` to number means trying to change the type to number temporarily.
172172
173173
## Step 7: **Finish basic freeCodeCamp challenges:**
174174
@@ -191,7 +191,7 @@ Go through the reading material in the [README.md](/Week2/README.md) to prepare
191191
192192
```
193193
How to hand in your homework:
194-
• Upload your homework in your "hyf-javascript1" Github repository. Make sure to create a new folder "week2" first.
194+
• Upload your homework in your "hyf-javascript1" Github repository. Make sure to create a new folder "week2" first.
195195
• Upload your homework files inside the week2 folder and write a description for this “commit”.
196196
• Your hyf-javascript1/week2 should now contain all your homework files.
197197
• Place the link to your repository folder in Trello.

0 commit comments

Comments
 (0)