You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Week7/MAKEME.md
+74-26Lines changed: 74 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Give feedback on Step 4 and 5 of last weeks homework. Please provide the feedbac
22
22
23
23
_Deadline Monday_
24
24
25
-
- Solve all your Git issues. DO NO CLOSE AN ISSUE WITHOUT AN EXPLANATION OR CODE COMMIT REFERENCING THAT ISSUE.
25
+
- Solve all your Git issues. DO NO CLOSE AN ISSUE WITHOUT AN EXPLANATION OR CODE COMMIT REFERENCING THAT ISSUE.
26
26
27
27
28
28
## Step 3: Fix issues
@@ -37,7 +37,7 @@ _Deadline Saturday_
37
37
38
38
Let's practice working with Objects and Arrays. Go to FreeCodeCamp and complete all challenges under "Object Oriented and Functional Programming" and the _first four challenges_ under "Basic Algorithm Scripting", up until 'Find the longest word in a string.'
39
39
40
-
Also make:
40
+
Also make:
41
41
42
42
1.[Comparisons with the Logical And Operator](https://www.freecodecamp.com/challenges/comparisons-with-the-logical-and-operator)
43
43
@@ -49,38 +49,86 @@ Also make:
49
49
50
50
_Deadline Wednesday_
51
51
52
+
Complete the following code:
53
+
52
54
```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()
55
+
classMovie {
56
+
constructor(title, director) {
57
+
// add your code here
58
+
}
59
+
60
+
getTitle() {
61
+
// add your code here
62
+
}
63
+
64
+
getDirector() {
65
+
// add your code here
66
+
}
67
+
68
+
addStar(star) {
69
+
// add your code here
70
+
}
71
+
72
+
getStars() {
73
+
// add your code here
74
+
}
75
+
76
+
addWriter(writer) {
77
+
// add your code here
78
+
}
79
+
80
+
getWriters() {
81
+
// add your code here
82
+
}
83
+
84
+
addRating(rating) {
85
+
// add your code here
86
+
}
87
+
88
+
getAverageRating() {
89
+
// add your code here
90
+
}
91
+
63
92
// ... Add yours :-) Look to IMDB for inspiration
64
93
}
65
94
66
-
Staff {
67
-
getName()
68
-
getRole()
69
-
getAge()
70
-
// ... Add yours :-) Look to IMDB for inspiration
95
+
classStaffMember {
96
+
constructor(name, role, dateOfBirth) {
97
+
// add your code here
98
+
}
99
+
100
+
addMovie(movie) {
101
+
// add your code here
102
+
}
103
+
104
+
getName() {
105
+
// add your code here
106
+
}
107
+
108
+
getRole() {
109
+
// add your code here
110
+
}
111
+
112
+
getAge() {
113
+
// add your code here
114
+
}
71
115
}
72
116
73
-
// Initialize the objects
74
-
// by pick your favorite movie from http://www.imdb.com/
// Be creative with this let's see what you come up with :-)
80
129
```
81
130
82
-
Fun extra step: If you get bored, template them and make a page by rendering the results in HTML :slightly_smiling_face:
83
-
with something like `document.querySelector('.move').innerHTML = MovieHTML`
131
+
Fun extra step: If you get bored, template them and make a page by rendering the results in HTML :smile: with something like `document.querySelector('.move').innerHTML = ...`
84
132
85
133
## Step 6: Read before next lecture
86
134
@@ -115,7 +163,7 @@ Remember the person with the most kata points gets a prize from Gijs (and you ca
0 commit comments