check is char in javascri[pt code example Example: if string javascript if (typeof myVar === 'string') { /* code */ };