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

Skip to content

Commit 4ac2622

Browse files
Added a small clarification to the homework assignment 9
1 parent b50eeec commit 4ac2622

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Week3/MAKEME.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ let favoriteAnimals = ["blowfish", "capricorn", "giraffe"];
104104

105105
8. How do you get the third element from that list?
106106

107-
9. Change the function `vehicle` to use the list of question 7. So that `vehicle("green", 3, 1)` prints "a green new bike".
107+
9. Change the function `vehicle` to use the list of question 7. So that `vehicle("green", 3, 1)` prints "a green new bike".
108+
> Hint, it should use the `code` to get the value from the array. So `vehicle("green", 2, 1)` prints "a green new caravan".
108109
109110
10. Use the list of vehicles to write an advertisement. So that it prints something like: `"Amazing Joe's Garage, we service cars, motorbikes, caravans and bikes."`. (Hint: use a `for` loop.)
110111

0 commit comments

Comments
 (0)