Operators in JavaScript

Learn Operators in JavaScript

<html>
<body>
<script type=”text/javascript”>

var a=10;
var b=5;

document.write(“a :: “+a+” b :: “+b+”<br><br>”);

a+=b;

document.write(“a+=b :: “+a+”<br><br>”);

a-=b;

document.write(“a-=b :: “+a+”<br><br>”);

a*=b;

document.write(“a*=b :: “+a+”<br><br>”);

a/=b;

document.write(“a/=b :: “+a+”<br><br>”);
</script>
</body>
</html>

 

Share

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.