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