Created
October 3, 2016 09:58
-
-
Save thaiall/1fe8ef8528fa8ffe31e2dbc8ff9c36eb to your computer and use it in GitHub Desktop.
put 2 number in window prompt and use plus operator with number converting by parseInt function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var x = window.prompt("put a number") | |
var y = window.prompt("put another number") | |
var z = parseInt(x) + parseInt(y); | |
window.alert(z); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment