This commit is contained in:
@@ -235,3 +235,52 @@ Abschlussquiz - JS Grundlagen
|
|||||||
- **Exkurs: Statische Webseite mit Sass und HTML**
|
- **Exkurs: Statische Webseite mit Sass und HTML**
|
||||||
- **Exkurs: Versionierung mit Github Part I**
|
- **Exkurs: Versionierung mit Github Part I**
|
||||||
- 1:1 Meeting
|
- 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
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Ich bin file 01
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Ich bin file 02
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Ich bin file 03
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Ich bin file 04
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Ich bin file 05
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Ich bin file 06
|
||||||
29
02_advanced/uebungen/u12_mehrere-dateien-auslesen/index.js
Normal file
29
02_advanced/uebungen/u12_mehrere-dateien-auslesen/index.js
Normal 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);
|
||||||
|
});
|
||||||
@@ -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"
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# Meeting Fr. 03.07.2026
|
# Meeting Fr. 03.07.2026
|
||||||
|
|
||||||
- [ ] 15:05 - 15:15 Uhr Kahleel
|
- [x] 15:35 - 15:45 Uhr Kahleel
|
||||||
- [ ] 15:15 - 15:25 Uhr Adel
|
- [x] 15:45 - 15:55 Uhr Adel
|
||||||
- [ ] 15:25 - 15:35 Uhr Andreas
|
- [x] 15:55 - 16:05 Uhr Andreas
|
||||||
- [ ] 15:35 - 15:45 Uhr Ersin
|
- [x] 16:05 - 15:15 Uhr Ersin
|
||||||
|
|||||||
Reference in New Issue
Block a user