Skip to content

Instantly share code, notes, and snippets.

@fataelislami
Created March 28, 2017 13:31
Show Gist options
  • Save fataelislami/f9f8c9ab5f77e7a79b554d821ef1fb39 to your computer and use it in GitHub Desktop.
Save fataelislami/f9f8c9ab5f77e7a79b554d821ef1fb39 to your computer and use it in GitHub Desktop.
Example of Math Operator
<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