console.clear();

let name = "Andreas";
let alter = 65;
let monat = alter * 12;
let tag = alter * 365;
let stunde = tag * 24;
let minute = stunde * 60;
let sek = minute * 60;

console.log("Mein Vorname ist " + name + ".");
console.log("ich bin " + alter + " Jahre alt.");
console.log("ich bin " + monat + " Monate alt.");
console.log("ich bin " + tag + " Tage alt.");
console.log("ich bin " + stunde + " Stunden alt.");
console.log("ich bin " + minute + " Minuten alt.");
console.log("ich bin " + sek + " Sekunden alt.");

console.clear();

let seconds = 100000;

let hours = (seconds / 60) / 60;
let days = hours / 24;
let years = days / 365;
console.log(hours);
console.log(days);
console.log(years);

BERECHNUNGEN:
console.clear();

let a = 5;
let b = 6;
let result = a + b;

console.log(result);

KONSTANTEN:


ARRAYS:
console.clear();

let notebook = ["Eier kaufen", "Mehl kaufen", "Sport machen", "Aufräumen"];

let nextnote = "Auto umparken";
notebook.push(nextnote);

let newnote = prompt();
notebook.push(newnote);


console.log(notebook[0]);
console.log("Notizposition 2 ist: " + notebook[1]);
console.log(notebook[2]);
console.log(notebook[3]);
console.log(notebook[4]);
console.log(notebook[5]);
console.log(notebook[6]);
