How to get division remainder in JavaScript

Numbers
Last updated Mar 08, 2018
const even = 8 % 2;
const odd = 5 % 2;

console.log({ even, odd });
{
    even: 0,
    odd: 1
}