Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- var x = prompt("Enter a number");
- var y = prompt("Enter another number");
- document.write("Hello, world!");
- function thebutton(a,b)
- {
- var ans = a+b;
- document.write(ans);
- }
- thebutton(x,y);
- </script>
Add Comment
Please, Sign In to add comment