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

Skip to content

Commit f52d2a9

Browse files
authored
Merge pull request HackYourFuture#19 from remarcmij/master
fixed formatting MAKEME week3
2 parents 735a7b2 + f0d357b commit f52d2a9

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

Week3/MAKEME.md

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,28 +29,30 @@ Your Github should contain two repositories called hyf-javascript1 and hyf-comma
2929

3030
_Deadline Wednesday_
3131

32-
1. Strings!
33-
1.1 Let's consider the following string: `let myString = "hello,this,is,a,difficult,to,read,sentence"`
34-
1.2 Add the string to your file and console.log it.
35-
1.4 Console.log the length of `myString`.
36-
1.5 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
37-
1.6 Console.log `myString` to see if you succeeded.
38-
39-
2. Arrays!
40-
consider the following array:
32+
1\. **Strings!**
33+
1\.1 Let's consider the following string: `let myString = "hello,this,is,a,difficult,to,read,sentence"`
34+
1\.2 Add the string to your file and console.log it.
35+
1\.4 Console.log the length of `myString`.
36+
1\.5 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
37+
1\.6 Console.log `myString` to see if you succeeded.
38+
39+
2\. **Arrays!**
40+
consider the following array:
41+
4142
```js
4243
let favoriteAnimals = ['blowfish', 'capricorn', 'giraffe'];
4344
```
44-
2.6 Add a statement that adds Mauro's favorite animal (turtle) to the existing array
45-
2.7 Log your new array!
46-
2.8 Now add Jim's favorite animal to the array, its a meerkat, but make sure it will be placed after 'blowfish' and before 'capricorn'.
47-
2.9 Write a console.log statement that explains in words _you think_ the new value of the array is.
48-
2.10 Log your new new array!
49-
2.11 Log the length of the array, add a message: "The array has a length of: "(here you should show the length of the array)
50-
2.12 Jason does not like giraffes, delete this animal from the array
51-
2.13 Again log your new array.
52-
2.14 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?
53-
2.15 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)
45+
46+
2\.1 Add a statement that adds Mauro's favorite animal (turtle) to the existing array
47+
2\.2 Log your new array!
48+
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'.
49+
2\.4 Write a console.log statement that explains in words _you think_ the new value of the array is.
50+
2\.5 Log your new new array!
51+
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)
52+
2\.7 Jason does not like giraffes, delete this animal from the array
53+
2\.8 Again log your new array.
54+
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?
55+
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)
5456

5557
## Step 4: Custom DOM manipulation challenge :mortar_board:
5658

0 commit comments

Comments
 (0)