Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit a14b432

Browse files
committed
renaming variables
1 parent ccb874f commit a14b432

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"prefer-arrow-callback": "off",
2020
"prefer-destructuring": "off",
2121
"prefer-template": "off",
22-
"trailing-comma": "off"
22+
"trailing-comma": "off",
23+
"linebreak-style": "off"
2324
}
2425
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,4 @@ typings/
5959

6060
.netlify
6161
dist/
62+
live/

Week1/homework/style.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
/* add your styling here */

Week2/homework/maartjes-work.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ const maartjesHourlyRate = 20;
4848
function computeEarnings(tasks, hourlyRate) {
4949
const totalEarnings = tasks
5050
.map(task => task.duration / 60)
51-
.filter(rate => rate >= 2)
52-
.map(rate => rate * hourlyRate)
51+
.filter(hours => hours >= 2)
52+
.map(hours => hours * hourlyRate)
5353
.reduce((acc, curVal) => Math.round((acc + curVal) * 100) / 100);
5454
return totalEarnings;
5555
}

0 commit comments

Comments
 (0)