include is-odd.js in your website:
<script src="is-odd.js" defer>...then simply call the "isOdd()" function!
console.log(isOdd(2)); // returns falseit's that simple! (¬‿¬)
Note
you might be interested in the new, JIT compiled version, is-odd-jit!