. Advertisement .
..3..
. Advertisement .
..4..
I want to check if number is a whole number in javascript but I am still a novice at Javascript, your suggestions would be much appreciated. Thank you.
Here is a case study for you// The Number.isInteger() checks to see if the passed value is an integer
// Returns true or false
Number.isInteger(2); //True
Number.isInteger(90); //True
Number.isInteger("37"); //False
Number.isInteger(false); //false
1 Answer