diff --git a/02_advanced/unterricht/tag11/01_schleifen/02_for-of-statement.html b/02_advanced/unterricht/tag11/01_schleifen/02_for-of-statement.html index dcb05cb..eaddb83 100644 --- a/02_advanced/unterricht/tag11/01_schleifen/02_for-of-statement.html +++ b/02_advanced/unterricht/tag11/01_schleifen/02_for-of-statement.html @@ -39,7 +39,6 @@ console.log('=============='); // imperativen Stil (wie...) - for (const name of names) { console.log(`Index: ${names.indexOf(name)}, Name: ${name}`); } diff --git a/02_advanced/unterricht/tag11/02_objekte.html b/02_advanced/unterricht/tag11/02_objekte.html index 49e2254..984ab77 100644 --- a/02_advanced/unterricht/tag11/02_objekte.html +++ b/02_advanced/unterricht/tag11/02_objekte.html @@ -105,7 +105,6 @@ console.log(cssObj[cssProp]); //=> '3px solid tomato' console.log(cssObj.color); //=> 'white' - console.log(cssObj); // ========================== // document.querySelector('h1').style.color = cssObj.color; diff --git a/02_advanced/unterricht/tag11/04_schnittstellenformate/persons.xml b/02_advanced/unterricht/tag11/04_schnittstellenformate/persons.xml index dc5f42d..a91c355 100644 --- a/02_advanced/unterricht/tag11/04_schnittstellenformate/persons.xml +++ b/02_advanced/unterricht/tag11/04_schnittstellenformate/persons.xml @@ -1,5 +1,6 @@ + Max Mustermann diff --git a/02_advanced/unterricht/tag11/05_objekte-mit-this.html b/02_advanced/unterricht/tag11/05_objekte-mit-this.html index 3d43467..9ef6f42 100644 --- a/02_advanced/unterricht/tag11/05_objekte-mit-this.html +++ b/02_advanced/unterricht/tag11/05_objekte-mit-this.html @@ -80,6 +80,7 @@ }, lauf: () => { + console.log(this); // window return 'Person läuft'; }, schiess: () => { diff --git a/02_advanced/unterricht/tag12/01_destructuring.html b/02_advanced/unterricht/tag12/01_destructuring.html new file mode 100644 index 0000000..ebfa09f --- /dev/null +++ b/02_advanced/unterricht/tag12/01_destructuring.html @@ -0,0 +1,112 @@ + + + + + + Destructuring von Objekten "{}" und Arrays "[]" in JS + + + +
+
+

Destructuring von Objekten "{}" und Arrays "[]" in JS

+
+
+ + + diff --git a/02_advanced/unterricht/tag12/02_csv-to-obj.html b/02_advanced/unterricht/tag12/02_csv-to-obj.html new file mode 100644 index 0000000..9289976 --- /dev/null +++ b/02_advanced/unterricht/tag12/02_csv-to-obj.html @@ -0,0 +1,72 @@ + + + + + + CSV to Obj mit "destructuring" + + + +
+
+

CSV to Obj mit "destructuring"

+
+
+
+ + + 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