how to check if it a string in js code example Example: if string javascript if (typeof myVar === 'string') { /* code */ };