javascript is variable number or string

JavaScript
if (typeof myVar === 'string'){
    //I am indeed a string
}
Source

Also in JavaScript: