typeof array string code example Example: typeof array const array = [ 'this', 'is', 'an', 'array' ]; console.log(typeof array); //object