check if somethign is a stgring in javascrtipt code example Example: javascript is variable a string if (typeof myVar === 'string'){ //I am indeed a string }