Which arithmetic operator is used to calculate the remainder in JavaScript?

  • % (Modulus)
  • / (Division)
  • * (Multiplication)
  • + (Addition)
In JavaScript, the % (Modulus) operator is used to calculate the remainder of a division operation. For example, 7 % 3 equals 1 because when 7 is divided by 3, the remainder is 1.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *