how to check whether a string is a number in javascript code example
Example 1: javascript is variable a string
if (typeof myVar === 'string'){
//I am indeed a string
}
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