This commit is contained in:
Philippe Torrel
2026-07-06 09:11:46 +02:00
parent 1b7f884cc6
commit 3578c15a45
10 changed files with 101 additions and 4 deletions

View File

@@ -235,3 +235,52 @@ Abschlussquiz - JS Grundlagen
- **Exkurs: Statische Webseite mit Sass und HTML**
- **Exkurs: Versionierung mit Github Part I**
- 1:1 Meeting
---
#### Tag 16
**Inhalt:**
- **Exkurs: Statische Webseite mit Sass und HTML Part II**
- **Exkurs: Versionierung mit Github Part I**
- Mehrdimensionale Arrays
- Chess-Beispiel
**Übungen:**
Projektarbeiten
Übungen 11 -13
---
#### Tag 17
**Inhalt:**
- Fetch API
- fetch mit Promise und async...await
- Arbeiten mit Fetch API
- Joke API auslesen
**Übungen:**
Übungen 14 - 20
---
#### Tag 18
**Inhalt:**
- XML-HttpRequest und AJAX mit jQuery
- Node Installation
- CSV to HTML
- Node Standardbib
- fs
- zlib (stream)
- Crypto
**Übungen:**
Übungen 20 - 24

View File

@@ -0,0 +1 @@
Ich bin file 01

View File

@@ -0,0 +1 @@
Ich bin file 02

View File

@@ -0,0 +1 @@
Ich bin file 03

View File

@@ -0,0 +1 @@
Ich bin file 04

View File

@@ -0,0 +1 @@
Ich bin file 05

View File

@@ -0,0 +1 @@
Ich bin file 06

View File

@@ -0,0 +1,29 @@
// const fs = require('node:fs'); // commonjs
import fs from 'node:fs'; // esm - module Schreibweise
const getFileBy = (path, encoding = 'utf-8') => {
return new Promise((resolve, reject) => {
// async process
fs.readFile(path, encoding, (error, data) => {
if (error) {
reject(error);
}
resolve(data);
});
});
};
Promise.all([
getFileBy('data/file01.txt'),
getFileBy('data/file02.txt'),
getFileBy('data/file03.txt'),
getFileBy('data/file04.txt'),
getFileBy('data/file05.txt'),
getFileBy('data/file06.txt'),
])
.then((data) => {
console.log(data);
})
.catch((err) => {
console.log(err);
});

View File

@@ -0,0 +1,13 @@
{
"name": "u12_mehrere-dateien-auslesen",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"type": "module"
}

View File

@@ -1,6 +1,6 @@
# Meeting Fr. 03.07.2026
- [ ] 15:05 - 15:15 Uhr Kahleel
- [ ] 15:15 - 15:25 Uhr Adel
- [ ] 15:25 - 15:35 Uhr Andreas
- [ ] 15:35 - 15:45 Uhr Ersin
- [x] 15:35 - 15:45 Uhr Kahleel
- [x] 15:45 - 15:55 Uhr Adel
- [x] 15:55 - 16:05 Uhr Andreas
- [x] 16:05 - 15:15 Uhr Ersin