Mod operator in action : Mod « Operators « JavaScript Tutorial






<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
var a = 6, b = 4;
alert(a % b);
//  -->
</script>
</head>
<body>

</body>
</html>








2.12.Mod
2.12.1.Modulus (%)
2.12.2.Mod operator in action
2.12.3.%= (Modulus Assignment)