Welcome to a new series of JavaScript codes where I try to post a one-liner JavaScript function. This first code is a one-liner code for determining if a number is odd or even:
const isEven = (num) => !Boolean(num % 2);
const isOdd = (num) => Boolean(num % 2);