Math Operator in JavaScript

wailynnooJune 25, 20102min760
<html>
<head>
<title>JavaScript</title>
</head>
<body>
<script type="text/javascript">
var myVariable = 100;
var anotherVariable = 200;
var finalResults = myVariable + anotherVariable;
document.write(finalResults);
</script>
</body>
</html>

အပေါ်က example ကို run လိုက်ရင် borwser မှာ 300 လို့ပေါ်မှာပါ။

<html>
<head>
<title>JavaScript</title>
</head>
<body>
<script type="text/javascript">
var myVariable = 100;
var finalResults = myVariable -50;
document.write(finalResults);
</script>
</body>
</html>

အပေါ်က example ကို run လိုက်ရင် borwser မှာ 50 လို့ပေါ်မှာပါ။

<html>
<head>
<title>JavaScript</title>
</head>
<body>
<script type="text/javascript">
var myVariable = 100;
var finalResults = myVariable * 5;
document.write(finalResults);
</script>
</body>
</html>

အပေါ်က example ကို run လိုက်ရင် borwser မှာ 500 လို့ပေါ်မှာပါ။

<html>
<head>
<title>JavaScript</title>
</head>
<body>
<script type="text/javascript">
var myVariable = 100;
var anotherVariable = 2;
var finalResults = myVariable / anotherVariable;
document.write(finalResults);
</script>
</body>
</html>

အပေါ်က example ကို run လိုက်ရင် borwser မှာ 200 လို့ပေါ်မှာပါ။