let myArrayFromConstructor = new Array("hello", "world"); let myArrayFromLiteral = ["hello", "world"]; console.log( typeof myArrayFromConstructor); console.log( typeof myArrayFromLiteral); function isArray(obj) { return Object.prototype.toString.apply(obj) === '[object Array]'; } console.log( isArray(myArrayFromLiteral) ); console.log( isArray(myArrayFromConstructor) );