From 41efb8a5ab99e33dd089afd9c9470cd454855da2 Mon Sep 17 00:00:00 2001 From: Philippe Torrel Date: Tue, 30 Jun 2026 14:56:20 +0200 Subject: [PATCH] --- 02_advanced/unterricht/tag11/01_objekte.html | 4 +- .../unterricht/tag11/03_objekte-mit-this.html | 15 ++- .../unterricht/tag12/01_csv-to-obj.html | 69 +++++++++++ .../unterricht/tag12/02_destructuring.html | 110 ++++++++++++++++++ .../tag12/03_destructuring-with-object.html | 64 ++++++++++ .../04_destructuring-with-rest-operator.html | 61 ++++++++++ .../05_destructuring-in-paramerterliste.html | 33 ++++++ .../unterricht/tag12/06_rekursion.html | 42 +++++++ .../tag12/07_rekursion-rate-zahl.html | 41 +++++++ .../tag12/08_rekursion-mit-closure.html | 49 ++++++++ .../tag12/09_rekursion-fakultaet.html | 37 ++++++ .../tag12/10_rekursion-fibonacci.html | 64 ++++++++++ .../tag12/11_rekursion-sum-ohne-reduce.html | 46 ++++++++ .../unterricht/tag12/data/products.csv | 4 + 14 files changed, 635 insertions(+), 4 deletions(-) create mode 100644 02_advanced/unterricht/tag12/01_csv-to-obj.html create mode 100644 02_advanced/unterricht/tag12/02_destructuring.html create mode 100644 02_advanced/unterricht/tag12/03_destructuring-with-object.html create mode 100644 02_advanced/unterricht/tag12/04_destructuring-with-rest-operator.html create mode 100644 02_advanced/unterricht/tag12/05_destructuring-in-paramerterliste.html create mode 100644 02_advanced/unterricht/tag12/06_rekursion.html create mode 100644 02_advanced/unterricht/tag12/07_rekursion-rate-zahl.html create mode 100644 02_advanced/unterricht/tag12/08_rekursion-mit-closure.html create mode 100644 02_advanced/unterricht/tag12/09_rekursion-fakultaet.html create mode 100644 02_advanced/unterricht/tag12/10_rekursion-fibonacci.html create mode 100644 02_advanced/unterricht/tag12/11_rekursion-sum-ohne-reduce.html create mode 100644 02_advanced/unterricht/tag12/data/products.csv diff --git a/02_advanced/unterricht/tag11/01_objekte.html b/02_advanced/unterricht/tag11/01_objekte.html index 32b8409..14282ca 100644 --- a/02_advanced/unterricht/tag11/01_objekte.html +++ b/02_advanced/unterricht/tag11/01_objekte.html @@ -29,7 +29,7 @@ const ar = []; const ar2 = new Array(); // oder Array() - const str = ''; // "" | ``` + const str = ''; // "" | `` const str2 = new String(); // oder String(); const zahl = 123; @@ -49,6 +49,7 @@ console.log(typeof str); // 'string' - Objekt vom Typ String console.log(typeof false); // 'boolean' - Objekt vom Typ Boolean console.log(typeof zahl); // 'number' - Objekt vom Typ Number + console.log(typeof Infinity); // 'number' - Objekt vom Typ Number console.log(typeof NaN); // 'number' - Objekt vom Typ Number console.log(typeof (() => {})); // 'function' - Objekt vom Typ Function console.log(typeof undefined); // undefined @@ -81,6 +82,7 @@ }; // Object.freeze(personObj); + // personObj.lastname = 'Wock'; personObj.hairColor = 'Braun'; diff --git a/02_advanced/unterricht/tag11/03_objekte-mit-this.html b/02_advanced/unterricht/tag11/03_objekte-mit-this.html index c568a58..39e33e6 100644 --- a/02_advanced/unterricht/tag11/03_objekte-mit-this.html +++ b/02_advanced/unterricht/tag11/03_objekte-mit-this.html @@ -75,6 +75,14 @@ lauf: () => { return 'Person läuft'; }, + // sayHello: function () { + // console.log(`${this.firstName} ${this.lastName} says "Hi"`); + // }, + // Kurzschreibweise von "sayHello: function () {" + sayHello() { + console.log(`${this.firstName} ${this.lastName} says "Hi"`); + }, + schiess: () => { console.log('pew pew'); }, @@ -87,6 +95,7 @@ console.log(personObj); console.log(personObj.lauf()); // => 'Person läuft' console.log(personObj.schiess()); + console.log(personObj.sayHello()); console.log(personObj.age); // => 45 @@ -120,13 +129,13 @@ }, // run: () => { - // console.log(this); // window - // console.log(`${this.fullName} is running!`); + // console.log(this); // window - keine neue Referenz + // console.log(`${this.fullName} is running!`); // undefined is running // }, // run: function () { // console.log(this); // person - Object - // console.log(`${this.fullName} is running!`); + // console.log(`${this.fullName} is running!`); // 'Ben Stiller' is running // }, run() { diff --git a/02_advanced/unterricht/tag12/01_csv-to-obj.html b/02_advanced/unterricht/tag12/01_csv-to-obj.html new file mode 100644 index 0000000..2c20df4 --- /dev/null +++ b/02_advanced/unterricht/tag12/01_csv-to-obj.html @@ -0,0 +1,69 @@ + + + + + + CSV to Obj mit destructuring + + + +
+
+

CSV to Obj mit destructuring

+
+
+
+ + + diff --git a/02_advanced/unterricht/tag12/02_destructuring.html b/02_advanced/unterricht/tag12/02_destructuring.html new file mode 100644 index 0000000..5f0cd12 --- /dev/null +++ b/02_advanced/unterricht/tag12/02_destructuring.html @@ -0,0 +1,110 @@ + + + + + + Destructuring von Objekten und Arrays in JS + + + +
+
+

Destructuring von Objekten und Arrays in JS

+
+
+ + + diff --git a/02_advanced/unterricht/tag12/03_destructuring-with-object.html b/02_advanced/unterricht/tag12/03_destructuring-with-object.html new file mode 100644 index 0000000..027c2ac --- /dev/null +++ b/02_advanced/unterricht/tag12/03_destructuring-with-object.html @@ -0,0 +1,64 @@ + + + + + + JS - Destructuring mit Objekten + + + +
+
+

JS - Destructuring mit Objekten

+
+
+
+ + + diff --git a/02_advanced/unterricht/tag12/04_destructuring-with-rest-operator.html b/02_advanced/unterricht/tag12/04_destructuring-with-rest-operator.html new file mode 100644 index 0000000..63bd3fa --- /dev/null +++ b/02_advanced/unterricht/tag12/04_destructuring-with-rest-operator.html @@ -0,0 +1,61 @@ + + + + + + JS - Destructuring mir Rest-Parameter (...) + + + +
+
+

JS - Destructuring mir Rest-Parameter (...)

+
+
+
+ + + diff --git a/02_advanced/unterricht/tag12/05_destructuring-in-paramerterliste.html b/02_advanced/unterricht/tag12/05_destructuring-in-paramerterliste.html new file mode 100644 index 0000000..2a6c8be --- /dev/null +++ b/02_advanced/unterricht/tag12/05_destructuring-in-paramerterliste.html @@ -0,0 +1,33 @@ + + + + + + JS - Destructuring in der Parameterliste mit Defaultwerten + + + +
+
+

JS - Destructuring in der Parameterliste mit Defaultwerten

+
+
+ + + diff --git a/02_advanced/unterricht/tag12/06_rekursion.html b/02_advanced/unterricht/tag12/06_rekursion.html new file mode 100644 index 0000000..04a05ff --- /dev/null +++ b/02_advanced/unterricht/tag12/06_rekursion.html @@ -0,0 +1,42 @@ + + + + + + Rekursion in JS + + + +
+
+

Rekursion in JS

+
+
+
+ + + diff --git a/02_advanced/unterricht/tag12/07_rekursion-rate-zahl.html b/02_advanced/unterricht/tag12/07_rekursion-rate-zahl.html new file mode 100644 index 0000000..71c56dc --- /dev/null +++ b/02_advanced/unterricht/tag12/07_rekursion-rate-zahl.html @@ -0,0 +1,41 @@ + + + + + + Rekursion - Beispiel Zahl raten + + + +
+
+

Rekursion - Beispiel Zahl raten

+
+
+
+ + + diff --git a/02_advanced/unterricht/tag12/08_rekursion-mit-closure.html b/02_advanced/unterricht/tag12/08_rekursion-mit-closure.html new file mode 100644 index 0000000..5b1cad7 --- /dev/null +++ b/02_advanced/unterricht/tag12/08_rekursion-mit-closure.html @@ -0,0 +1,49 @@ + + + + + + Rekursion - Beispiel Zahl raten + + + +
+
+

Rekursion - Beispiel Zahl raten

+
+
+
+ + + diff --git a/02_advanced/unterricht/tag12/09_rekursion-fakultaet.html b/02_advanced/unterricht/tag12/09_rekursion-fakultaet.html new file mode 100644 index 0000000..93e2d83 --- /dev/null +++ b/02_advanced/unterricht/tag12/09_rekursion-fakultaet.html @@ -0,0 +1,37 @@ + + + + + + Rekursion Beispiel: Fakultät errechnen + + + +
+
+

Rekursion Beispiel: Fakultät errechnen

+
+
+ + + diff --git a/02_advanced/unterricht/tag12/10_rekursion-fibonacci.html b/02_advanced/unterricht/tag12/10_rekursion-fibonacci.html new file mode 100644 index 0000000..c64c93f --- /dev/null +++ b/02_advanced/unterricht/tag12/10_rekursion-fibonacci.html @@ -0,0 +1,64 @@ + + + + + + Rekursion Beispiel: Fibonacci-Reihenfolge errechnen + + + +
+
+

Rekursion Beispiel: Fibonacci-Reihenfolge errechnen

+
+
+ + + diff --git a/02_advanced/unterricht/tag12/11_rekursion-sum-ohne-reduce.html b/02_advanced/unterricht/tag12/11_rekursion-sum-ohne-reduce.html new file mode 100644 index 0000000..b45542f --- /dev/null +++ b/02_advanced/unterricht/tag12/11_rekursion-sum-ohne-reduce.html @@ -0,0 +1,46 @@ + + + + + + Rekursion Beispiel: Summe eine Arrays errechnen + + + +
+
+

Rekursion Beispiel: Summe eine Arrays errechnen

+
+
+ + + diff --git a/02_advanced/unterricht/tag12/data/products.csv b/02_advanced/unterricht/tag12/data/products.csv new file mode 100644 index 0000000..88b1ce0 --- /dev/null +++ b/02_advanced/unterricht/tag12/data/products.csv @@ -0,0 +1,4 @@ +name, category, price +Klingon Letter Opener, Office Warfare, 19.99 +Backpack of Holding, Travel, 29.99 +Tardis Alarmclock, Merchandise, 15.99