This commit is contained in:
Philippe Torrel
2026-09-10 10:44:58 +02:00
parent 74f6ed1720
commit 86041b24e8
7 changed files with 100 additions and 51 deletions

View File

@@ -23,6 +23,12 @@
'use strict';
const outputEl = document.querySelector('.output');
const age = prompt('Wie alt bist Du?');
const result = `Du bist ${age} Jahre alt.`;
console.log(result);
outputEl.textContent = result;
</script>
</body>
</html>