<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Combined Assignment Operators Example</title>
</head>
<body>
<script>
  // Combined Assignment Operators Example
  let d = 8;
  
  // Combined addition and assignment
  d += 4; // Equivalent to: d = d + 4
  document.write("After addition: d = " + d + "<br>"); // Output: After addition: d = 12
  
  // Combined subtraction and assignment
  d -= 2; // Equivalent to: d = d - 2
  document.write("After subtraction: d = " + d + "<br>"); // Output: After subtraction: d = 10
  
  // Combined multiplication and assignment
  d *= 3; // Equivalent to: d = d * 3
  document.write("After multiplication: d = " + d + "<br>"); // Output: After multiplication: d = 30
  
  // Combined division and assignment
  d /= 5; // Equivalent to: d = d / 5
  document.write("After division: d = " + d + "<br>"); // Output: After division: d = 6
  
  // Combined modulus and assignment
  d %= 4; // Equivalent to: d = d % 4
  document.write("After modulus: d = " + d + "<br>"); // Output: After modulus: d = 2
</script>
</body>
</html>