One-liner JavaScript - Odd or Even
20 Jan 2022 1 minute read 0 comments k88.io
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...