adding coursesEnrolled.js as a functionality to check what courses have been taken up.

This commit is contained in:
bdaneels
2025-04-10 16:48:13 +02:00
parent 45023185a1
commit 5cf306a56e
5 changed files with 70 additions and 22 deletions

View File

@@ -0,0 +1,13 @@
const parseCourseResults = (listOfObj) => {
result = listOfObj.map(obj => {
const studiegidsNummer = obj.studiegidsNummer.slice(-10);
return `${studiegidsNummer} ${obj.opleidingsOnderdeel} - ${obj.studiepunten}SP, `;
});
return result.join("\n");
}
module.exports = parseCourseResults;