check the string using javascript code example Example: js test if string if (typeof string === 'string') { /* code */ };