Skip to content

Commit f3fe10a

Browse files
authored
Update MAKEME.md
1 parent 70c6b3b commit f3fe10a

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Week3/MAKEME.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,11 @@ let myString = "hello,this,is,a,difficult,to,read,sentence";
7070
```
7171

7272
1\.1 Add the string to your file and log it.
73+
7374
1\.2 Log the length of `myString`.
75+
7476
1\.3 The commas make that the sentence is quite hard to read. Find a way to remove the commas from the string and replace them with spaces.
77+
7578
1\.4 Log `myString` to see if you succeeded.
7679

7780
2\. **Arrays!**
@@ -83,14 +86,23 @@ let favoriteAnimals = ['blowfish', 'capricorn', 'giraffe'];
8386
```
8487

8588
2\.1 Add a statement that adds Mauro's favorite animal *'turtle'* to the existing array.
89+
8690
2\.2 Log your new array!
91+
8792
2\.3 Now add Jim's favorite animal to the array, it's *'meerkat'*, but make sure it will be placed after *'blowfish'* and before *'capricorn'*.
93+
8894
2\.4 Write a console.log statement that explains in words _you think_ the new value of the array is.
95+
8996
2\.5 Log your new array!
97+
9098
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).
99+
91100
2\.7 Jason does not like *'giraffe'*, delete this animal from the array.
101+
92102
2\.8 Again log your new array.
103+
93104
2\.9 Now if unlike Jim, you don't like *'meerkat'* 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?
105+
94106
2\.10 Log the index of *'meerkat'*. Add a message so it says: *'The item you are looking for is at index: '* (here you should show the index of the item).
95107

96108
## More JavaScript :tada:

0 commit comments

Comments
 (0)