how to check is value has string type code example Example: js test if string if (typeof string === 'string') { /* code */ };