How to check if number is odd in JavaScript

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

const isOdd = number % 2 !== 0;

console.log(isOdd);
true