JS how to check if is integer code example
Example 1: javascript is number an integer
Number.isInteger(value)
//returns a Boolean
Example 2: how to check if a string is an integer javascript
isNaN(num) // returns true if the variable does NOT contain a valid number