File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,8 +45,39 @@ Also make:
4545
46463 . [ 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
You can’t perform that action at this time.
0 commit comments