From c13d2d44342f57bcbaff331855515747a4f740b8 Mon Sep 17 00:00:00 2001 From: Philippe Torrel Date: Thu, 17 Sep 2026 13:34:19 +0200 Subject: [PATCH] --- 01_grundlagen/linksammlung.md | 8 ++ 01_grundlagen/uebungen/u38_alte-listen.html | 8 +- .../unterricht/tag09/01_str-split.html | 60 ++++++++++++ .../unterricht/tag09/02_ar-reverse.html | 50 ++++++++++ ...3_ar-to-sorted-to-reversed-to-spliced.html | 94 +++++++++++++++++++ .../tag09/04_ar-sort-compare-fn.html | 51 ++++++++++ .../05_ar-sort-compare-fn-bsp-admin.html | 91 ++++++++++++++++++ 01_grundlagen/unterricht/tag09/06_ar-map.html | 86 +++++++++++++++++ 8 files changed, 445 insertions(+), 3 deletions(-) create mode 100644 01_grundlagen/unterricht/tag09/01_str-split.html create mode 100644 01_grundlagen/unterricht/tag09/02_ar-reverse.html create mode 100644 01_grundlagen/unterricht/tag09/03_ar-to-sorted-to-reversed-to-spliced.html create mode 100644 01_grundlagen/unterricht/tag09/04_ar-sort-compare-fn.html create mode 100644 01_grundlagen/unterricht/tag09/05_ar-sort-compare-fn-bsp-admin.html create mode 100644 01_grundlagen/unterricht/tag09/06_ar-map.html diff --git a/01_grundlagen/linksammlung.md b/01_grundlagen/linksammlung.md index babd609..00cf5f9 100644 --- a/01_grundlagen/linksammlung.md +++ b/01_grundlagen/linksammlung.md @@ -36,6 +36,14 @@ - [Microsoft PowerToys](https://learn.microsoft.com/de-de/windows/powertoys/) +## Passwordmanager + +- [Enpass](https://www.enpass.io/pricing/) +- [1password](https://1password.com/de/pricing/password-manager) +- [KeepassXC](https://keepassxc.org/) +- [Safe in cloud](https://safe-in-cloud.com/) +- [BitWarden](https://bitwarden.com/de-de/) + ## Fonts diff --git a/01_grundlagen/uebungen/u38_alte-listen.html b/01_grundlagen/uebungen/u38_alte-listen.html index 4b2b60e..2f1d06d 100644 --- a/01_grundlagen/uebungen/u38_alte-listen.html +++ b/01_grundlagen/uebungen/u38_alte-listen.html @@ -28,10 +28,12 @@ 'use strict'; const productList = - '3Doodler 3D Printing Pen, Game of Thrones Wax Seal Coasters, 10th Doctor Sonic Screwdriver Exclusive Programmable TV Remote, Electronic Butterfly in a Jar, Aquafarm: Aquaponics Fish Garden, Cassette Adapter Bluetooth, Marvel Comics Lightweight Infinity Scarf, Ollie - The App Controlled Robot, Sound Splash Bluetooth Waterproof Shower Speaker, PowerCube, Backpack of Holding, Retro Duo Portable NES/SNES Game System, Universal Gadget Wrist Charger, USB Squirming Tentacle, USB Fishquarium, Space Bar Keyboard Organizer & USB Hub Pop, USB Pet Rock, Powerstation 5- E. Maximus Chargus, Dual Heated Travel Mug, Crosley Collegiate Portable USB Turntable, Meh Hoodie, Magnetic Accelerator Cannon, 8-Bit Heat-Change Mug'; - - const handleCsv = (list) => list.split(', ').sort(); + '3Doodler 3D Printing Pen, Game of Thrones Wax Seal Coasters , 10th Doctor Sonic Screwdriver Exclusive Programmable TV Remote, Electronic Butterfly in a Jar , Aquafarm: Aquaponics Fish Garden, Cassette Adapter Bluetooth, Marvel Comics Lightweight Infinity Scarf, Ollie - The App Controlled Robot, Sound Splash Bluetooth Waterproof Shower Speaker, PowerCube, Backpack of Holding, Retro Duo Portable NES/SNES Game System, Universal Gadget Wrist Charger, USB Squirming Tentacle, USB Fishquarium, Space Bar Keyboard Organizer & USB Hub Pop, USB Pet Rock, Powerstation 5- E. Maximus Chargus, Dual Heated Travel Mug, Crosley Collegiate Portable USB Turntable, Meh Hoodie, Magnetic Accelerator Cannon, 8-Bit Heat-Change Mug'; + const handleCsv = (list) => { + const games = list.split(/\s*,\s*/); // list.split(', '); + return games.sort(); + }; console.log(handleCsv(productList).join('\n')); diff --git a/01_grundlagen/unterricht/tag09/01_str-split.html b/01_grundlagen/unterricht/tag09/01_str-split.html new file mode 100644 index 0000000..83ef46a --- /dev/null +++ b/01_grundlagen/unterricht/tag09/01_str-split.html @@ -0,0 +1,60 @@ + + + + + + String.split() + + + +
+
+

String - str.split()

+

+ + str.split() + + - Die split() Methode teilt ein String Objekt in ein Array von Strings auf, indem der String + in Teilstrings zerteilt wird, wobei ein angegebenes Trennzeichen verwendet wird, um zu bestimmen, wo die + Aufteilung erfolgen soll. +

+ +
+
+
+ + + diff --git a/01_grundlagen/unterricht/tag09/02_ar-reverse.html b/01_grundlagen/unterricht/tag09/02_ar-reverse.html new file mode 100644 index 0000000..e7e50ca --- /dev/null +++ b/01_grundlagen/unterricht/tag09/02_ar-reverse.html @@ -0,0 +1,50 @@ + + + + + + Array.reverse() + + + +
+
+

Array.reverse()

+

+ + ar.reverse() + + - Die Methode von Array Instanzen kehrt ein Array in place um und gibt die Referenz auf dasselbe + Array zurück, wobei das erste Array-Element nun zum letzten und das letzte Array-Element zum ersten wird. Mit + anderen Worten, die Reihenfolge der Elemente im Array wird in die entgegengesetzte Richtung gedreht. +

+
+
+
+ + + diff --git a/01_grundlagen/unterricht/tag09/03_ar-to-sorted-to-reversed-to-spliced.html b/01_grundlagen/unterricht/tag09/03_ar-to-sorted-to-reversed-to-spliced.html new file mode 100644 index 0000000..b3818aa --- /dev/null +++ b/01_grundlagen/unterricht/tag09/03_ar-to-sorted-to-reversed-to-spliced.html @@ -0,0 +1,94 @@ + + + + + + Array - Neue Methoden seit Juni 2023 + + + +
+
+

Array - Neue Methoden seit Juni 2023

+
+

Array - ar.toSorted()

+

+ Die + + toSorted() + + Methode von Array Instanzen ist die kopierende Version der sort() Methode. Sie gibt ein neues + Array mit den Elementen in aufsteigender Reihenfolge zurück. +

+
+

Array - ar.toReversed()

+

+ Die + + toReversed() + + Methode von Array Instanzen ist das kopierende Gegenstück der reverse() Methode. Sie gibt ein + neues Array mit den Elementen in umgekehrter Reihenfolge zurück. +

+

Array - ar.toSpliced()

+

+ Die + + toSpliced() + + Methode von Array-Instanzen ist die kopierende Version der splice()-Methode. Sie gibt ein neues + Array zurück, bei dem einige Elemente entfernt und/oder an einem bestimmten Index ersetzt wurden. +

+
+
+
+ + + diff --git a/01_grundlagen/unterricht/tag09/04_ar-sort-compare-fn.html b/01_grundlagen/unterricht/tag09/04_ar-sort-compare-fn.html new file mode 100644 index 0000000..001a3d2 --- /dev/null +++ b/01_grundlagen/unterricht/tag09/04_ar-sort-compare-fn.html @@ -0,0 +1,51 @@ + + + + + + Array - ar.sort(compareFn) + + + +
+
+

Array - ar.sort(compareFn)

+
+ Bubble sort +
+

+ + ar.sort(compareFn) + + - Die sort() Methode sortiert die Elemente eines Arrays in-place und gibt das + Array zurück. Standardmäßig werden alle Elemente in Strings umgewandelt und dann anhand ihrer UTF-16 + Codepoints miteinander verglichen. +

+
+ Das angesprochene Array wird durch in-place-mutation ebenfalls sortiert. +
+ +
+

Rückgabewerte der Vergleichfunktion:

+
    +
  • Rückgabewert 0: Positionen bleiben stehen
  • +
  • Rückgabewert < 0: Positionen bleiben stehen
  • +
  • Rückgabewert > 0: Positionen vertauscht
  • +
+
+
+
+ + + diff --git a/01_grundlagen/unterricht/tag09/05_ar-sort-compare-fn-bsp-admin.html b/01_grundlagen/unterricht/tag09/05_ar-sort-compare-fn-bsp-admin.html new file mode 100644 index 0000000..02c5415 --- /dev/null +++ b/01_grundlagen/unterricht/tag09/05_ar-sort-compare-fn-bsp-admin.html @@ -0,0 +1,91 @@ + + + + + + Array - ar.sort(compareFn) + + + +
+
+

Array - ar.sort(compareFn)

+
+ Bubble sort +
+

+ + ar.sort(compareFn) + + - Die sort() Methode sortiert die Elemente eines Arrays in-place und gibt das + Array zurück. Standardmäßig werden alle Elemente in Strings umgewandelt und dann anhand ihrer UTF-16 + Codepoints miteinander verglichen. +

+
+ Das angesprochene Array wird durch in-place-mutation ebenfalls sortiert. +
+ +
+

Rückgabewerte der Vergleichfunktion:

+
    +
  • Rückgabewert 0: Positionen bleiben stehen
  • +
  • Rückgabewert < 0: Positionen bleiben stehen
  • +
  • Rückgabewert > 0: Positionen vertauscht
  • +
+
+
+
+ + + diff --git a/01_grundlagen/unterricht/tag09/06_ar-map.html b/01_grundlagen/unterricht/tag09/06_ar-map.html new file mode 100644 index 0000000..4156ed7 --- /dev/null +++ b/01_grundlagen/unterricht/tag09/06_ar-map.html @@ -0,0 +1,86 @@ + + + + + + Array - ar.map() + + + +
+
+

Array - ar.map()

+

+ ar.map() + - Die map() (engl. abbilden) Methode wendet auf jedes Element des Arrays die bereitgestellte + Funktion an und gibt das Ergebnis in einem neuen Array zurück. (side-effect-free) +

+
+
+
+ + +