Use the /= operator to divide the variable x with 5. - Javascript Operator

Javascript examples for Operator:Quiz

Description

Use the /= operator to divide the variable x with 5.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

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

<script>
var x = 10;//ww  w.ja v a 2 s.  c o m
x /= 5;
document.getElementById("demo").innerHTML = x;
</script>

</body>
</html>

Related Tutorials