Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
test.html
<!DOCTYPE html>
<html>
<head>
<title>Summieren</title>
<meta charset="UTF-8">
</head>
<body>
<script type="text/javascript">
var a=1;
var b=2;
var c=3;
var summe = parseInt(a)+ parseInt(b)+ parseInt(c);
var x = prompt("Bitte einen Wert für 'a' eingeben");
var y = prompt("Bitte einen Wert für 'b' eingeben");
var z = prompt("Bitte einen Wert für 'c' eingeben");
document.write(a + b + c + summe)
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.