This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user