how to check variable is number or string in javascript code example
Example: javascript is variable a string
if (typeof myVar === 'string'){
//I am indeed a string
}
if (typeof myVar === 'string'){
//I am indeed a string
}