1.5.0: practice for every challenge #8

Merged
oliver.maklott merged 1 commit from ueben-pools into main 2026-10-21 10:28:12 +02:00

Practice for every challenge of the pack (plan "Übungen für alle Packs").

Challenge normal advanced expert
klassen-schalten class names (mark), add/remove/toggle after n clicks, the dot in the class name (edit) contains, which method does what (match), aria-expanded (edit) className overwrites, accordion: only one open, toggle with a condition (write)
eingaben-lesen "5" + 1, which event when (match), Number() (edit) Number and NaN, mark the conversions, value read too early length, exactly at the limit > vs >= (write), toggle("zu-lang", …)
elemente-erzeugen tag names (mark), the missing append (edit), how many entries append the same element twice, which line does what (match), a list with a loop (write) firstElementChild/lastElementChild.remove(), text stays text, remove an entry (edit)
daten-und-anzeige the objects (mark), drawn twice, loop over the data data changed without zeichne(), add via the data (edit), change a property how many are done, flip erledigt with !, a sum from the data (write)
zufall which numbers are possible, the missing + 1 (edit), compute with a fixed value index from a fixed value, which range (match), length instead of a number (edit) Pasch?, three throws, two dice with two calls (write)
tastatur key conditions (mark), where the box is, key ↔ change (match) stop at the border, key names (match), a border in a function (edit) count hits, where the state lives, getroffen() with && (write)
quiz the questions (mark), which answer counts, count points swap two, next or done, the missing buttons (edit) the result text, usable for everyone (match), auswerten() (write)
  • Values come from the round's seed. Every round has three items of three topics.
  • DOM steps are checked once after loading (dom, with check.random where it rolls); the page of the right answer is what that code produces, the wrong answer fails for a real reason (missing append, .klasse, no + 1, one roll for both dice, a li built past the data …). No interactions: a test page cannot follow a seed honestly.
  • Skills are catalog names.
  • Tests: every item with three seeds, right passes and wrong fails (19 of 63 items run code). Checked locally once with 64 seeds.
  • README section "Üben". 1.5.0 (minor), built against 1.4.0.

Checks: aivopod pack test 191 passed, pack build --previous clean, tsc --noEmit clean.

🤖 Generated with Claude Code

Practice for every challenge of the pack (plan "Übungen für alle Packs"). | Challenge | normal | advanced | expert | | --- | --- | --- | --- | | klassen-schalten | class names (mark), add/remove/toggle after n clicks, the dot in the class name (edit) | contains, which method does what (match), aria-expanded (edit) | className overwrites, accordion: only one open, toggle with a condition (write) | | eingaben-lesen | "5" + 1, which event when (match), Number() (edit) | Number and NaN, mark the conversions, value read too early | length, exactly at the limit `>` vs `>=` (write), toggle("zu-lang", …) | | elemente-erzeugen | tag names (mark), the missing append (edit), how many entries | append the same element twice, which line does what (match), a list with a loop (write) | firstElementChild/lastElementChild.remove(), text stays text, remove an entry (edit) | | daten-und-anzeige | the objects (mark), drawn twice, loop over the data | data changed without zeichne(), add via the data (edit), change a property | how many are done, flip erledigt with !, a sum from the data (write) | | zufall | which numbers are possible, the missing + 1 (edit), compute with a fixed value | index from a fixed value, which range (match), length instead of a number (edit) | Pasch?, three throws, two dice with two calls (write) | | tastatur | key conditions (mark), where the box is, key ↔ change (match) | stop at the border, key names (match), a border in a function (edit) | count hits, where the state lives, getroffen() with && (write) | | quiz | the questions (mark), which answer counts, count points | swap two, next or done, the missing buttons (edit) | the result text, usable for everyone (match), auswerten() (write) | - Values come from the round's seed. Every round has three items of three topics. - DOM steps are checked once after loading (`dom`, with `check.random` where it rolls); the `page` of the right answer is what that code produces, the wrong answer fails for a real reason (missing append, `.klasse`, no + 1, one roll for both dice, a li built past the data …). No interactions: a test page cannot follow a seed honestly. - Skills are catalog names. - Tests: every item with three seeds, right passes and wrong fails (19 of 63 items run code). Checked locally once with 64 seeds. - README section "Üben". 1.5.0 (minor), built against 1.4.0. Checks: `aivopod pack test` 191 passed, `pack build --previous` clean, `tsc --noEmit` clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
lib/ueben.ts builds each exercise with a passing and a failing answer; testdaten/ueben.ts tries
every item with three seeds. DOM exercises predict with options or are checked once after
loading (`dom` against the page the right and the wrong code really produce), no interactions;
code that runs stays moderate (19 of 63 items), so the CI runner's limit is far away.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aivopod-challenges/JavaScript-und-die-Website-2!8
No description provided.