Files
yourpart3/backend/scripts/count-per-lesson-24-43.mjs
Torsten Schulz (local) 1ab9407e79
All checks were successful
Deploy to production / deploy (push) Successful in 2m56s
Refactor code structure for improved readability and maintainability; optimize performance across multiple modules.
2026-07-21 09:08:15 +02:00

26 lines
822 B
JavaScript
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { BISAYA_LESSONS_24_43_BY_NUMBER, BISAYA_DIDACTICS_24_43 } from './bisaya-course-plan-24-43.js';
const out = [];
for (let n = 24; n <= 43; n++) {
const lesson = BISAYA_LESSONS_24_43_BY_NUMBER[n];
if (!lesson) {
out.push({ lesson: n, title: null, corePatterns: 0 });
continue;
}
const title = lesson.title;
const didactic = BISAYA_DIDACTICS_24_43[title];
let count = 0;
if (didactic && didactic.corePatterns) {
count += didactic.corePatterns.length;
}
out.push({ lesson: n, title, corePatterns: count });
}
// Print nicely
for (const r of out) {
console.log(`Lektion ${r.lesson}: ${r.title || '[nicht definiert]'}${r.corePatterns} corePatterns`);
}
const total = out.reduce((s,r)=>s+r.corePatterns,0);
console.log(`\nGesamt corePatterns (Lektionen 2443 Summe): ${total}`);