-
-
Save thams017/eca10db0807d37f5c047 to your computer and use it in GitHub Desktop.
Calculate-Calculator
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
function calculate () | |
{ | |
var res = document.getElementById( "text" ); | |
var expression = res.value; | |
res.value = eval(expression); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment