JavaScript:实现检查数字是否为奇数算法
/*
* function to check if number is odd.
* return true if number is odd.
* else false
*/
/**
* @function isOdd
* @description -> Checking if number is odd using not divisibility by 2
* If number is not divisible by 2 i.e remainder = 1, then it is odd
* therefore, the function will return true
*
* If number is divisible by 2 i.e remainder != 1, then it is even
* therefore, the function will return false
* @param {number} number
* @returns {boolean}
*/
const isOdd =