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

Skip to content

Commit 2007189

Browse files
author
Samir Aleido
committed
🎨 style: Consistent format across all changes
1 parent e6abfb5 commit 2007189

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Week3/MAKEME.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,26 +84,26 @@ Consider the following array:
8484
let favoriteAnimals = ['blowfish', 'capricorn', 'giraffe'];
8585
```
8686

87-
2\.1 Add a statement that adds Mauro's favorite animal ('turtle') to the existing array
87+
2\.1 Add a statement that adds Mauro's favorite animal *'turtle'* to the existing array.
8888
2\.2 Log your new array!
89-
2\.3 Now add Jim's favorite animal to the array, it's a 'meerkat', but make sure it will be placed after 'blowfish' and before 'capricorn'.
89+
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'*.
9090
2\.4 Write a console.log statement that explains in words _you think_ the new value of the array is.
9191
2\.5 Log your new array!
92-
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)
93-
2\.7 Jason does not like giraffes, delete this animal from the array
92+
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).
93+
2\.7 Jason does not like *'giraffe'*, delete this animal from the array.
9494
2\.8 Again log your new array.
95-
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?
96-
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)
95+
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?
96+
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).
9797

9898
## More JavaScript :tada:
9999

100-
1. Create a function that takes 3 arguments and returns the sum of the three arguments.
100+
1. Create a function that takes 3 arguments and returns the sum of the these arguments.
101101

102-
2. Create a function named `colorCar` that receives a color, and prints out, "a red car" for example.
102+
2. Create a function named `colorCar` that receives a color, and prints out, *'a red car'* for example.
103103

104104
3. Create an object and a function that takes the object as a parameter and prints out all of its properties and values.
105105

106-
4. Create a function named `vehicleType` that receives a color, and a code, 1 for car, 2 for motorbike. And prints "a blue motorbike" for example when called as `vehicleType("blue", 2)`
106+
4. Create a function named `vehicleType` that receives a color, and a code, 1 for car, 2 for motorbike. And prints *'a blue motorbike'* for example when called as `vehicleType("blue", 2)`
107107

108108
5. Can you write the following without the `if` statement, but with just as a single line with `console.log(...);`?
109109

@@ -115,7 +115,7 @@ let favoriteAnimals = ['blowfish', 'capricorn', 'giraffe'];
115115
}
116116
```
117117

118-
6. Create a function called `vehicle`, like before, but takes another parameter called age, so that `vehicle("blue", 1, 5)` prints "a blue used car"
118+
6. Create a function called `vehicle`, like before, but takes another parameter called `age`, so that `vehicle("blue", 1, 5)` prints *'a blue used car'*
119119

120120
7. Make a list of vehicles, you can add `"motorbike"`, `"caravan"`, `"bike"`, or more.
121121

0 commit comments

Comments
 (0)