Display the product of 8 * 5, using two variables x and y. - Javascript Math

Javascript examples for Math:Quiz

Description

Display the product of 8 * 5, using two variables x and y.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

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

<script>
var x = 8;//from  w  w w. j  a v  a2 s . co m
var y = 5;
document.getElementById("demo").innerHTML = x * y;
</script>

</body>
</html>

Related Tutorials