new commit
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
|
||||
// Aktuelle Mondatszahl - beginnt bei 1.
|
||||
let currentMonth = 1;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ function getFibonacci(n) {
|
||||
return b;
|
||||
}
|
||||
|
||||
|
||||
// Zeigt die aktuelle Mondatszahl im DOM an.
|
||||
function showMonth(month) {
|
||||
document.getElementById("monthDisplay").textContent = "Monat: " + month;
|
||||
}
|
||||
@@ -44,7 +44,7 @@ function showRabbits(count) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Zum nächsten Monat wechseln und Anzeige aktualisieren.
|
||||
function nextMonth() {
|
||||
currentMonth++;
|
||||
showMonth(currentMonth);
|
||||
|
||||
Reference in New Issue
Block a user