This commit is contained in:
Philippe Torrel
2026-11-02 14:13:12 +01:00
parent 3e77bd3f49
commit 5c5e64aac9
9 changed files with 116 additions and 36 deletions
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="de">
<head>
<meta charset="UTF-8" />
@@ -9,14 +9,15 @@
<body>
<main>
<div class="container py-5">
<h1>Übung 7: checkTemperature Fehler</h1>
<p>Versuche, den Code auszuführen, den Fehler zu identifizieren und ihn zu beheben.</p>
<div class="alert alert-primary">
<h2>Übung 7: checkTemperature Fehler</h2>
<p>Versuche, den Code auszuführen, den Fehler zu identifizieren und ihn zu beheben.</p>
</div>
</div>
</main>
<script>
'use strict';
function checkTemperature(temperature) {
const threshold = 30;
const message;
@@ -24,7 +25,7 @@
if (temperature > threshold) {
message = "It's too hot outside!";
} else {
message = "The temperature is just right.";
message = 'The temperature is just right.';
}
console.log(message);