How to get division remainder in JavaScript

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

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