how to check if a number is a thousand js code example Example: js check if number has decimals num % 1 != 0