Use the %= operator to assign a remainder of 10 / 3 to the variable x. - Javascript Operator

Javascript examples for Operator:Quiz

Description

Use the %= operator to assign a remainder of 10 / 3 to the variable x.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

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

<script>
var x = 10;/*from  w  ww .  j av  a2  s.  co  m*/
x %= 3;
document.getElementById("demo").innerHTML = x;
</script>

</body>
</html>

Related Tutorials