jquery check if variable is object or string code example Example: js test if string if (typeof string === 'string') { /* code */ };