Created
April 3, 2022 17:04
-
-
Save SmashedFrenzy16/5f9697fcdc7ca9db19cdbbd273318db8 to your computer and use it in GitHub Desktop.
An adding calculator made in JavaScript.
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
var firstNum = window.prompt("First number: "); | |
number1 = parseInt(firstNum); | |
var secondNum = window.prompt("Second number: "); | |
number2 = parseInt(secondNum); | |
alert("Press OK to see results."); | |
alert(number1 + number2); |
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 src="adding-calculator.js"></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment