True. If the function is supposed to be something like, getParity, and returns 0 or 1 depending on if it's even or odd, then it should definitely throw if you give it something other than an integer. With isEvenNumber, it's closer, because a string or a function or a decimal or whatever isn't an even number.
4
u/buffer_overfloooooow Mar 26 '21
Also dumb because it doesn't work for even one digit numbers