From 2889de7f0c2d587a17fbd322af57c29e84238620 Mon Sep 17 00:00:00 2001
From: Hong-Phuc Bui <hong-phuc.bui@htwsaar.de>
Date: Thu, 16 Jan 2025 12:22:14 +0100
Subject: [PATCH] update parcel
---
stundenplan/src/semester-effort.js | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/stundenplan/src/semester-effort.js b/stundenplan/src/semester-effort.js
index 281d47b..b4a518b 100644
--- a/stundenplan/src/semester-effort.js
+++ b/stundenplan/src/semester-effort.js
@@ -9,13 +9,13 @@
});
function main() {
- let lectures = [
+ const lectures = [
// ergänzen Sie die Vorlesungen hier. Die Struktur des Elementes finden Sie im Skript
];
- let lecturesInformation = []
- for(let lecture of lectures ) {
- let homework = calculateHomeworkTime(lecture.ects, lecture.sws/2);
- let newLecture = Object.assign({},lecture);
+ const lecturesInformation = []
+ for(const lecture of lectures ) {
+ const homework = calculateHomeworkTime(lecture.ects, lecture.sws/2);
+ const newLecture = Object.assign({},lecture);
newLecture.homework = homework;
lecturesInformation.push(newLecture);
}
@@ -38,7 +38,7 @@
let table = `<table><tr>
<th class="name">Vorlesung</th><th class="effort">Aufwand pro Woche in Stunden</th>
</tr>\n`;
- for(let l of lecturesInformation) {
+ for(const l of lecturesInformation) {
table += `<tr><td class="name">${l.name}</td> <td class="effort">${l.homework}</td></tr>\n`
}
table += "</table>";
--
Gitblit v1.10.0