Check if a given string is a valid integer in javascript 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