From d9e2b419841b4646ce9d484713f70d4b8ed509e3 Mon Sep 17 00:00:00 2001 From: Philippe Torrel Date: Fri, 11 Sep 2026 09:51:45 +0200 Subject: [PATCH] --- .../uebungen/u13_fehler-im-detail.html | 13 ++--- .../uebungen/u14_rechnen-ausdruecke.html | 56 ++++++++++--------- 01_grundlagen/uebungen/u18_lottozahl.html | 2 +- .../unterricht/tag04/01_escape-notation.html | 2 +- .../unterricht/tag04/04_nan-paradoxon.html | 1 + .../unterricht/tag04/05_math-api.html | 3 +- .../tag04/07_relationale-operatoren.html | 5 +- 7 files changed, 43 insertions(+), 39 deletions(-) diff --git a/01_grundlagen/uebungen/u13_fehler-im-detail.html b/01_grundlagen/uebungen/u13_fehler-im-detail.html index e737b7c..9d37c14 100644 --- a/01_grundlagen/uebungen/u13_fehler-im-detail.html +++ b/01_grundlagen/uebungen/u13_fehler-im-detail.html @@ -23,15 +23,14 @@ const outputEl = document.querySelector('.output'); - // let TALE = 'Alice was beginning to get very tired of sitting by her sister on the bank, and of having nothing to do once or twice she had peeped into the book her sister was reading, but it had no pictures or conversations in it, 'and what is the use of a book,' thought Alice 'without pictures or conversations?' + let tale = + "Alice was beginning to get very tired of sitting by her sister on the bank, and of having nothing to do; once or twice she had peeped into the book her sister was reading, but it had no pictures or conversations in it, 'and what is the use of a book,' thought Alice 'without pictures or conversations?'\n\nSo she was considering in her own mind, as well as she could, for the hot day made her feel very sleepy and stupid, whether the pleasure of making a daisy-chain would be worth the trouble of getting up and picking the daisies, when suddenly a white rabbit with pink eyes ran close by her.\n\nThere was nothing so very remarkable in that; nor did Alice think it so very much out of the way to hear the rabbit say to itself, 'Oh dear! Oh dear! I shall be too late!' (when she thought it over afterwards, it occurred to her that she ought to have wondered at this, but at the time it all seemed quite natural);\n\nBut when the rabbit actually took a watch out of its waistcoat-pocket, and looked at it, and then hurried on, Alice started to her feet, for it flashed across her mind that she had never before seen a rabbit with either a waistcoat-pocket, or a watch to take out of it, and burning with curiosity, she ran across the field after it, and fortunately was just in time to see it pop down a large rabbit-hole under the hedge."; - // So she was considering in her own mind, as well as she could, for the hot day made her feel very sleepy and stupid, whether the pleasure of making a daisy-chain would be worth the trouble of getting up and picking the daisies, when suddenly a white rabbit with pink eyes ran close by her. + console.log(tale); - // There was nothing so very remarkable in that; nor did Alice think it so very much out of the way to hear the rabbit say to itself, 'Oh dear! Oh dear! I shall be too late!' (when she thought it over afterwards, it occurred to her that she ought to have wondered at this, but at the time it all seemed quite natural); - - // But when the rabbit actually took a watch out of its waistcoat-pocket, and looked at it, and then hurried on, Alice started to her feet, for it flashed across her mind that she had never before seen a rabbit with either a waistcoat-pocket, or a watch to take out of it, and burning with curiosity, she ran across the field after it, and fortunately was just in time to see it pop down a large rabbit-hole under the hedge. - - // Console.log(tale); + // outputEl.innerText = tale; + // outputEl.innerHTML = tale.replaceAll('\n\n', '

'); + outputEl.innerHTML = `

${tale.replaceAll('\n\n', '

')}

`; diff --git a/01_grundlagen/uebungen/u14_rechnen-ausdruecke.html b/01_grundlagen/uebungen/u14_rechnen-ausdruecke.html index d5f06f5..d4b6436 100644 --- a/01_grundlagen/uebungen/u14_rechnen-ausdruecke.html +++ b/01_grundlagen/uebungen/u14_rechnen-ausdruecke.html @@ -1,4 +1,4 @@ - + @@ -23,68 +23,68 @@ '1.5' * 2 - - - - + 3 + 'number' '1,5' * 2 - - - - + NaN + 'number' '1.5' + 2 - - - - + '1.52' + 'string' Number('1.5') * 2 - - - - + 3 + 'number' Number('1,5') * 2 - - - - + NaN + 'number' Number('3 Tage') * 7 - - - - + NaN + 'number' Number('Seite 20') + 5 - - - - + NaN + 'number' '9,2' + Number('11.7') - - - - + '9,211.7' + 'string' (NaN - 2) * (4 / 2) - - - - + NaN + 'number' alert(Number(17 / 2 + 1.3)) - - - - + undefined + 'undefined' console.log(Number(17 / 2 + 1.3)) - - - - + undefined + 'undefined' typeof 12.25 - - - - + 'number' + 'string' typeof typeof 12.25 - - - - + 'string' + 'string' @@ -92,6 +92,8 @@ diff --git a/01_grundlagen/uebungen/u18_lottozahl.html b/01_grundlagen/uebungen/u18_lottozahl.html index 8ac27d4..c44f927 100644 --- a/01_grundlagen/uebungen/u18_lottozahl.html +++ b/01_grundlagen/uebungen/u18_lottozahl.html @@ -28,7 +28,7 @@ background: radial-gradient(circle, rgba(242, 242, 242, 1) 0%, rgba(130, 130, 130, 1) 93%); box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.2); } - .lotto-number span { + .lotto-number { font-weight: bolder; } diff --git a/01_grundlagen/unterricht/tag04/01_escape-notation.html b/01_grundlagen/unterricht/tag04/01_escape-notation.html index 000d2da..f77123b 100644 --- a/01_grundlagen/unterricht/tag04/01_escape-notation.html +++ b/01_grundlagen/unterricht/tag04/01_escape-notation.html @@ -33,7 +33,7 @@ All Escape Characters -
  • Escape Notation PDF
  • +
  • Escape Notation PDF
  • diff --git a/01_grundlagen/unterricht/tag04/04_nan-paradoxon.html b/01_grundlagen/unterricht/tag04/04_nan-paradoxon.html index ac97c24..bfbb5c0 100644 --- a/01_grundlagen/unterricht/tag04/04_nan-paradoxon.html +++ b/01_grundlagen/unterricht/tag04/04_nan-paradoxon.html @@ -24,6 +24,7 @@ console.log(12 / '3Produkte'); // => NaN console.log(12 / '3'); // => 4 console.log(12 / Number('3Produkte')); // => NaN + console.log(12 / parseInt('3Produkte')); // => 4 diff --git a/01_grundlagen/unterricht/tag04/05_math-api.html b/01_grundlagen/unterricht/tag04/05_math-api.html index 99d72a3..4bea00f 100644 --- a/01_grundlagen/unterricht/tag04/05_math-api.html +++ b/01_grundlagen/unterricht/tag04/05_math-api.html @@ -39,7 +39,7 @@ Quadratwurzel - Math.sqrt(9) ergibt 3/td> + Math.sqrt(9) ergibt 3 @@ -150,6 +150,7 @@ console.log(numbers[0]); // => 3 console.log(numbers[1]); // => 7 + // ... spread-operator console.log(Math.max(...numbers)); // => 20 console.log(Math.min(3, 7, 20, 1)); //=> 1 diff --git a/01_grundlagen/unterricht/tag04/07_relationale-operatoren.html b/01_grundlagen/unterricht/tag04/07_relationale-operatoren.html index cf4b4a4..6843ae0 100644 --- a/01_grundlagen/unterricht/tag04/07_relationale-operatoren.html +++ b/01_grundlagen/unterricht/tag04/07_relationale-operatoren.html @@ -41,7 +41,7 @@ console.log('Ladislaus' === 'Ladislaus'); //=> true console.log('Ladislaus' === 'ladislaus'); //=> false - // kein strikter Vergleich + // kein strikter Vergleich (VERWENDUNG VERMEIDEN) console.log(365 == 365); // => true console.log(365 == '365'); // => true @@ -54,6 +54,7 @@ console.log(5 == '5'); // => true console.log(0 == false); // => true console.log('0' == false); // => true + console.log('0' == '1'); // => false console.log('0' == ''); // => false console.log(0 == ''); // => true console.log(0 == '0'); // => true @@ -93,8 +94,8 @@ console.log(NaN === !NaN); // => false console.log(NaN === NaN); // => false - console.log(false === false); // => true console.log((NaN === !NaN) === (NaN === NaN)); // => true + console.log(false === false); // => true