a
This commit is contained in:
21
WS24_25/WebTech/web-pruefung-projekt/aufgabe4/js-objects.js
Normal file
21
WS24_25/WebTech/web-pruefung-projekt/aufgabe4/js-objects.js
Normal file
@@ -0,0 +1,21 @@
|
||||
// Hier den Code ergaenzen!
|
||||
let klausur = {
|
||||
dauer: 120,
|
||||
hilfsmittelErlaubt: false,
|
||||
}
|
||||
|
||||
let pruefung = {
|
||||
maxPunkte: 100,
|
||||
hilfsmittelErlaubt: true,
|
||||
}
|
||||
|
||||
Object.setPrototypeOf(pruefung, klausur);
|
||||
|
||||
let webtech = {
|
||||
pruefung: pruefung,
|
||||
titel: "Web-Tech",
|
||||
credits: 5,
|
||||
}
|
||||
|
||||
|
||||
console.log(webtech)
|
||||
13
WS24_25/WebTech/web-pruefung-projekt/aufgabe4/test.html
Normal file
13
WS24_25/WebTech/web-pruefung-projekt/aufgabe4/test.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>HTML-Datei zum Testen</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script src="js-objects.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user