is object a variable in javascript code example Example: javascript is object typeof yourVariable === 'object' && yourVariable !== null