why is typeof array object code example
Example 1: javascript typeof array
Array.isArray(obj)
Example 2: typeof array
const array = [ 'this', 'is', 'an', 'array' ];
console.log(typeof array); //object
Array.isArray(obj)
const array = [ 'this', 'is', 'an', 'array' ];
console.log(typeof array); //object