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

Skip to content

Commit 0cb5426

Browse files
committed
fixed indentation?
1 parent 465d245 commit 0cb5426

File tree

1 file changed

+22
-19
lines changed

1 file changed

+22
-19
lines changed

Week3/MAKEME.md

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

3838
_Deadline Wednesday_
3939

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!
48-
consider the following array:
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\.4 Console.log the length of `myString`.
44+
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
45+
1\.6 Console.log `myString` to see if you succeeded.
46+
47+
2\. **Arrays!**
48+
consider the following array:
49+
4950
```js
5051
let favoriteAnimals = ['blowfish', 'capricorn', 'giraffe'];
5152
```
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)
53+
54+
2\.1 Add a statement that adds Mauro's favorite animal (turtle) to the existing array
55+
2\.2 Log your new array!
56+
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'.
57+
2\.4 Write a console.log statement that explains in words _you think_ the new value of the array is.
58+
2\.5 Log your new new array!
59+
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)
60+
2\.7 Jason does not like giraffes, delete this animal from the array
61+
2\.8 Again log your new array.
62+
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?
63+
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)
64+
6265

6366
## Step 4: Custom DOM manipulation challenge :mortar_board:
6467

0 commit comments

Comments
 (0)