return the number of characters in 3 variable string using if statement javaScript code example Example: if string javascript if (typeof myVar === 'string') { /* code */ };