Skip to content

Instantly share code, notes, and snippets.

@luckyduck
Created November 24, 2015 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luckyduck/4f5d8b80f9c5a8b3eab0 to your computer and use it in GitHub Desktop.
Save luckyduck/4f5d8b80f9c5a8b3eab0 to your computer and use it in GitHub Desktop.
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