<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 လို့ေပၚမွာပါ။

About wailynnoo

wailynn oo has written 57 post in this Website..

I am a blogger.