Find the remainder when 15 is divided by 9, using two variables x / y and the modulus operator % - Javascript Operator

Javascript examples for Operator:Quiz

Description

Find the remainder when 15 is divided by 9, using two variables x / y and the modulus operator %

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

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

<script>
var x = 15;//from   www .  ja v  a2  s  .co m
var y = 9;
document.getElementById("demo").innerHTML = x % y;
</script>

</body>
</html>

Related Tutorials