Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Changed let to const
  • Loading branch information
Elena1987bt committed Mar 4, 2021
commit cb28c5b4efa6e818ee1f2a9e0621a04bee95a63f
2 changes: 1 addition & 1 deletion Week2/homework/maartjes-work.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const maartjesHourlyRate = 20;

function computeEarnings(tasks, hourlyRate) {
console.log(tasks, hourlyRate);
let earnings = tasks
const earnings = tasks
.map(day => day.duration / 60)
.filter(duration => duration >= 2)
.map(duration => duration * 20)
Expand Down