Added: Exercises
This commit is contained in:
49
01_grundlagen/uebungen/#u13_fehler-im-detail.html
Normal file
49
01_grundlagen/uebungen/#u13_fehler-im-detail.html
Normal file
@@ -0,0 +1,49 @@
|
||||
<!doctype html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Übung 13: Fehler im Detail</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" />
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<div class="container py-5">
|
||||
<div class="alert alert-primary my-3">
|
||||
<h2>Übung 13: Fehler im Detail</h2>
|
||||
|
||||
<p>Im folgenden Code haben sich einige Fehler und auch Regelwidrigkeiten eingeschlichen.</p>
|
||||
</div>
|
||||
|
||||
<div class="output alert alert-secondary my-3"></div>
|
||||
</div>
|
||||
</main>
|
||||
<script>
|
||||
'use strict';
|
||||
|
||||
const outputEl = document.querySelector('.output');
|
||||
|
||||
// let TALE = `Three hicks were working on a telephone tower - Steve, Bruce and Jed. Steve falls off and is killed instantly.
|
||||
|
||||
// As the ambulance takes the body away, Bruce says, 'Someone should go and tell his wife.'
|
||||
|
||||
// Jed says, 'OK, I'm pretty good at that sensitive stuff, I'll do it.'
|
||||
|
||||
// Two hours later, he comes back carrying a case of beer.
|
||||
|
||||
// Bruce says, 'Where did you get that, Jed?'
|
||||
|
||||
// 'Steve's wife gave it to me,' Jed replies.
|
||||
|
||||
// 'That's unbelievable, you told the lady her husband was dead and she gave you beer?'
|
||||
|
||||
// Well, not exactly', Jed says. 'When she answered the door, I said to her, "You must be Steve's widow".'
|
||||
|
||||
// She said, 'No, I'm not a widow!'
|
||||
|
||||
// And I said, 'I'll bet you a case of Budweiser you are.`;
|
||||
|
||||
//Console.log(tale);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user