How to check if number is even in JavaScript

Numbers
Last updated Dec 23, 2017
const number = 12;

const isEven = number % 2 === 0;

console.log(isEven);
true