Created
March 28, 2017 13:31
-
-
Save fataelislami/f9f8c9ab5f77e7a79b554d821ef1fb39 to your computer and use it in GitHub Desktop.
Example of Math Operator
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
<html> | |
<head></head> | |
<body> | |
<script> | |
var a=10; | |
var b=5; | |
var addition=a+b; | |
var substraction=a-b; | |
var multiply=a*b; | |
var division=a/b; | |
var modulus=a%b; | |
var increment=a++; | |
var decrement=a--; | |
document.write(addition); | |
document.write("<br>"); | |
document.write(substraction); | |
document.write("<br>"); | |
document.write(multiply); | |
document.write("<br>"); | |
document.write(division); | |
document.write("<br>"); | |
document.write(modulus); | |
document.write("<br>"); | |
document.write(increment); | |
document.write("<br>"); | |
document.write(decrement); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment