Code-Samples/javascript/13.5_arithmetic_code.html

The % Operator

var sub1 = 85;
var sub2 = 83;
var remaining = (sub1 + sub2) % 10;