Assign integer value to variable - Javascript Math

Javascript examples for Math:Quiz

Description

Assign integer value to variable

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<p id="demo"></p>

<script>
var x = 5;/*from  w  w w  .  j a  v a2  s.  c  om*/
var y = 6;
var z = x + y;
document.getElementById("demo").innerHTML = z;
</script>

</body>
</html>

Related Tutorials