how to check to see if a string is different in javascript code example Example: js test if string if (typeof string === 'string') { /* code */ };