if (typeof myVar === 'string'){ //I am indeed a string }
if (typeof myVar === 'integer'){ //I am indeed an integer } if (typeof myVar === 'boolean'){ //I am indeed a boolean }
if (typeof a_string === 'string') { // this is a string }