javascript is integer or string integer code example
Example: how to check if a string is an integer javascript
isNaN(num) // returns true if the variable does NOT contain a valid number
isNaN(num) // returns true if the variable does NOT contain a valid number