Quick parseint question

This is one of the solutions right? Someone has tried to be clever, basically. parseInt on a number will still try to parse the integer value from it. That part of the solution is saying “the nimber minus the integer part of the number == zero”, so 3.14 would be false, 3 would be true.

A much, much clearer version is n % 1 == 0 - if a number divides evenly by 1, it is by definition an integer.