File tree 1 file changed +0
-47
lines changed
1 file changed +0
-47
lines changed Original file line number Diff line number Diff line change @@ -126,50 +126,3 @@ How to hand in your homework:
126
126
• Your hyf-javascript2/week2 should now contain all your homework files.
127
127
Place the link to your repository folder in Trello.
128
128
` ` `
129
-
130
- <!--
131
- let wage = tasks
132
- .map ((task ) => {
133
- return {
134
- name: task .name ,
135
- duration: task .duration / 60
136
- }
137
- })
138
- .filter ((task ) => task .duration >= 2 )
139
- .reduce ((wage , task ) => {
140
- return wage + task .duration * 50
141
- }, 0 );
142
-
143
- console .log (` Maartje has earned € ${ wage .toFixed (2 )} ` );
144
-
145
- let wage2 = 0 ;
146
- tasks
147
- .map ((task ) => {
148
- return {
149
- name: task .name ,
150
- duration: task .duration / 60
151
- }
152
- })
153
- .filter ((task ) => task .duration >= 2 )
154
- .forEach ((task ) => {
155
- wage2 += task .duration * 50
156
- }, 0 );
157
-
158
- console .log (` Maartje has earned € ${ wage2 .toFixed (2 )} ` );
159
-
160
- let longTasks = tasks
161
- .map ((task ) => {
162
- return {
163
- name: task .name ,
164
- duration: task .duration / 60
165
- }
166
- })
167
- .filter ((task ) => task .duration >= 2 );
168
-
169
- let wage3 = 0 ;
170
- for (let task of longTasks) {
171
- wage3 += task .duration * 50
172
- }
173
-
174
- console .log (` Maartje has earned € ${ wage3 .toFixed (2 )} ` );
175
- -->
You can’t perform that action at this time.
0 commit comments