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

Skip to content

Commit ab35356

Browse files
committed
fixed indentation
1 parent 3e90399 commit ab35356

File tree

2 files changed

+58
-58
lines changed

2 files changed

+58
-58
lines changed

Week1/MAKEME.md

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Topics discussed in class this week:
1616
1. Go through the review of [week 1](https://github.com/HackYourFuture/JavaScript/blob/master/Week1/REVIEW.md)
1717
2. Watch: [What is programming](https://www.khanacademy.org/computing/computer-programming/programming/intro-to-programming/v/programming-intro) Just watch the 2 min video, you do not have to do the entire JavaScript course (It could be useful later on though).
1818
3. 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):
19-
0. Introduction
19+
<br>0. Introduction
2020
1. Programming Basics
2121
2. Core Programming Syntax
2222
3. Variables and Data Types
@@ -70,19 +70,19 @@ Hola, mundo! // Spanish
7070
```
7171
console.log('I'm awesome');
7272
```
73-
1. Copy the code in your `.js` file and run it. You will see that you will get a SyntaxError. Find a solution for this error, Hint read the error message carefully, it also gives an indication of where the problem is.
73+
2\.1 Copy the code in your `.js` file and run it. You will see that you will get a SyntaxError. Find a solution for this error, Hint read the error message carefully, it also gives an indication of where the problem is.
7474

7575
3. Declare a variable `x` and initialize it with an integer.
76-
1. First, _declare_ your variable `x`.
77-
2. Add a console.log statement that explains that explains in words what _you think_ the value of `x` is, like in this example:
76+
3\.1 First, _declare_ your variable `x`.
77+
3\.2 Add a console.log statement that explains that explains in words what _you think_ the value of `x` is, like in this example:
7878
```js
7979
// TODO -> here you initialize your variable
8080
console.log('the value of my variable x will be: whateverYouThinkItWillLog');
8181
```
82-
3. Add a console.log statement that logs the value of `x`
83-
4. Now _initialize_ your variable `x` with an integer
84-
5. Now add a console.log statement that explains what _you think_ the value of `x` is.
85-
6. Add a console.log statement that logs the value of `x`.
82+
3\.3 Add a console.log statement that logs the value of `x`
83+
3\.4 Now _initialize_ your variable `x` with an integer
84+
3\.5 Now add a console.log statement that explains what _you think_ the value of `x` is.
85+
3\.6 Add a console.log statement that logs the value of `x`.
8686
Steps to be taken:
8787

8888
```js
@@ -95,11 +95,11 @@ console.log('I'm awesome');
9595
```
9696

9797
4. Declare a variable `y` and assign a string to it.
98-
1. Write a console.log statement in which you explain in words what _you think_ the value of the string is
99-
2. Now console.log the variable `y`.
100-
3. Now assign a new string to the variable `y`
101-
4. Just like you did before write a console.log statement that explains in words what you think will be logged to the console.
102-
5. Now console.log `y` again.
98+
4\.1 Write a console.log statement in which you explain in words what _you think_ the value of the string is
99+
4\.2 Now console.log the variable `y`.
100+
4\.3 Now assign a new string to the variable `y`
101+
4\.4 Just like you did before write a console.log statement that explains in words what you think will be logged to the console.
102+
4\.5 Now console.log `y` again.
103103
```js
104104
// TODO -> here you declare AND assign your string
105105
console.log('the value of my string will be: whateverYouThinkItWillLog');
@@ -110,39 +110,39 @@ console.log('I'm awesome');
110110
```
111111

112112
5. How do you round the number 7.25, to the nearest integer?
113-
1. Declare a variable `z` and assign the number 7.25 to it.
114-
2. Console.log `z`.
115-
3. Declare another variable `a` that has the value of z but rounded to the nearest integer.
116-
4. Console.log `a`
117-
5. So now we have `z` and `a` find a way to compare the two values and store the highest of the two in a new variable.
118-
6. Console.log the highest value.
113+
5\.1 Declare a variable `z` and assign the number 7.25 to it.
114+
5\.2 Console.log `z`.
115+
5\.3 Declare another variable `a` that has the value of z but rounded to the nearest integer.
116+
5\.4 Console.log `a`
117+
5\.5 So now we have `z` and `a` find a way to compare the two values and store the highest of the two in a new variable.
118+
5\.6 Console.log the highest value.
119119

120120
6. Arrays!
121-
1. Declare an empty array (you can decide on how to call it yourself, but read on a bit here and see if you can find a good name that exactly describes what this variable will hold).
122-
2. Write a console.log statement that explains in words what you think the value of the array is.
123-
3. Console.log your array.
124-
4. Create an array that has your favorite animals inside
125-
5. Log your array
126-
6. Add a statement that adds Daan's favorite animal (baby pig) to the *existing array*
127-
7. Log your new array!
121+
6\.1 Declare an empty array (you can decide on how to call it yourself, but read on a bit here and see if you can find a good name that exactly describes what this variable will hold).
122+
6\.2 Write a console.log statement that explains in words what you think the value of the array is.
123+
6\.3 Console.log your array.
124+
6\.4 Create an array that has your favorite animals inside
125+
6\.5 Log your array
126+
6\.6 Add a statement that adds Daan's favorite animal (baby pig) to the *existing array*
127+
6\.7 Log your new array!
128128

129129
7. More strings
130-
1. Let's consider the following string: `let myString = "this,is,a,test"`.
131-
2. Add the string to your file and console.log it.
132-
3. Find a way to get the length of `myString`.
133-
4. Console.log the length of `myString`.
130+
7\.1 Let's consider the following string: `let myString = "this,is,a,test"`.
131+
7\.2 Add the string to your file and console.log it.
132+
7\.3 Find a way to get the length of `myString`.
133+
7\.4 Console.log the length of `myString`.
134134

135135
8. Write a program that checks the types of two variables and prints out `SAME TYPE` if they are the same type.
136-
1. First declare at least four variables and assign them different data types.
137-
2. For each variable write a `console.log` statement that logs the value
136+
8\.1 First declare at least four variables and assign them different data types.
137+
8\.2 For each variable write a `console.log` statement that logs the value
138138
```js
139139
let foo = 3;
140140
console.log('The value of my variable foo is: ' + foo);
141141
```
142-
3. Now write a console.log statement wherein you first explain in words what you think the _type_ of your variables is.
143-
4. Now use `typeof` to log the actual _type_ of your variables.
144-
5. Now compare the types of your different variables with one another.
145-
6. Make sure to also show a message when the variables you are comparing are not the same type.
142+
8\.3 Now write a console.log statement wherein you first explain in words what you think the _type_ of your variables is.
143+
8\.4 Now use `typeof` to log the actual _type_ of your variables.
144+
8\.5 Now compare the types of your different variables with one another.
145+
8\.6 Make sure to also show a message when the variables you are comparing are not the same type.
146146

147147
For example:
148148

@@ -157,12 +157,12 @@ if () {
157157
```
158158

159159
9. If `x` equals 7, and the only other statement is `x = x % 3`, what would be the new value of `x`?
160-
1. Add at least 3 `console.log` statements in which you show that you understand what `%` does.
160+
9\.1 Add at least 3 `console.log` statements in which you show that you understand what `%` does.
161161

162162
10. Write a program to answer the following questions:
163-
1. Can you store multiple types in an array? Numbers and strings? Make an example that illustrates your answer.
164-
2. Can you compare infinities? (Not in Eyad's world) - does 6/0 === 10/0? How can you test this?
165-
3. Add console.log statements to the above program's in which you show that you understand the concepts (just like you've done in the above assignments).
163+
10\.1 Can you store multiple types in an array? Numbers and strings? Make an example that illustrates your answer.
164+
10\.2 Can you compare infinities? (Not in Eyad's world) - does 6/0 === 10/0? How can you test this?
165+
10\.3 Add console.log statements to the above program's in which you show that you understand the concepts (just like you've done in the above assignments).
166166

167167
### Step 4: **Some freeCodeCamp challenges (10 hours):**
168168

Week3/MAKEME.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -37,28 +37,28 @@ Your Github should contain two repositories called hyf-javascript1 and hyf-comma
3737

3838
_Deadline Wednesday_
3939

40-
1. Strings!
41-
1. Let's consider the following string: `let myString = "hello,this,is,a,difficult,to,read,sentence"`
42-
2. Add the string to your file and console.log it.
43-
3. Console.log the length of `myString`.
44-
4. The comma's 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
45-
5. Console.log `myString` to see if you succeeded.
46-
47-
2. Arrays!
40+
1\. Strings!
41+
1\.1 Let's consider the following string: `let myString = "hello,this,is,a,difficult,to,read,sentence"`
42+
1\.2 Add the string to your file and console.log it.
43+
1\.3 Console.log the length of `myString`.
44+
1\.4 The comma's 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
45+
1\.5 Console.log `myString` to see if you succeeded.
46+
47+
2\. Arrays!
4848
consider the following array:
4949
```js
5050
let favoriteAnimals = ['blowfish', 'capricorn', 'giraffe'];
5151
```
52-
1. Add a statement that adds Mauro's favorite animal (turtle) to the existing array
53-
2. Log your new array!
54-
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'.
55-
4. Write a console.log statement that explains in words _you think_ the new value of the array is.
56-
5. Log your new new array!
57-
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)
58-
7. Jason does not like giraffes, delete this animal from the array
59-
8. Again log your new array.
60-
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?
61-
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)
52+
2\.1 Add a statement that adds Mauro's favorite animal (turtle) to the existing array
53+
2\.2 Log your new array!
54+
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'.
55+
2\.4 Write a console.log statement that explains in words _you think_ the new value of the array is.
56+
2\.5 Log your new new array!
57+
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)
58+
2\.7 Jason does not like giraffes, delete this animal from the array
59+
2\.8 Again log your new array.
60+
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?
61+
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)
6262

6363
## Step 4: Custom DOM manipulation challenge :mortar_board:
6464

0 commit comments

Comments
 (0)