Link Search Menu Expand Document

Finding a Remainder in JavaScript

Summary

  • The remainder operator % gives the remainder of the division of two numbers.
  • Can be used to check for an odd or even number.

Final Code

// Only change code below this line

var remainder = 11%3;