Skip to content

Commit 722f267

Browse files
committed
added code from class
1 parent 8e14b6f commit 722f267

1 file changed

Lines changed: 33 additions & 2 deletions

File tree

Week7/MAKEME.md

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,39 @@ Also make:
4545

4646
3. [Iterate over Arrays with map](https://www.freecodecamp.com/challenges/iterate-over-arrays-with-map)
4747

48-
## Step 5: TBA after hangout session.
49-
48+
## Step 5:
49+
50+
_Deadline Wednesday_
51+
52+
```js
53+
// Inspired by the lesson.
54+
// Create the following objects: Movies, Staff.
55+
56+
//Fill the following methods:
57+
Movies {
58+
getStars()
59+
getWrites()
60+
getDirector()
61+
getRating()
62+
rate()
63+
// ... Add yours :-) Look to IMDB for inspiration
64+
}
65+
66+
Staff {
67+
getName()
68+
getRole()
69+
getAge()
70+
// ... Add yours :-) Look to IMDB for inspiration
71+
}
72+
73+
// Initialize the objects
74+
// by pick your favorite movie from http://www.imdb.com/
75+
// and make sure that the following actions work.
76+
console.log(InstanceMovie.getStarts().map(actor => `${actor.getName()} ${actor.getAge}`));
77+
const director = InstanceMovie.getDirector();
78+
console.log(`Director: ${director.getName()}`);
79+
// Be creative with this let's see what you come up with :-)
80+
```
5081

5182
## Step 6: Read before next lecture
5283

0 commit comments

Comments
 (0)