Array type tests
by dhchow
JavaScript
function test() {
var arr = [];
var newArray = new Array();
alert(typeof arguments);
alert(arr instanceof Array);
alert(newArray instanceof Array);
alert(arr.constructor == Array);
alert(newArray.constructor == Array);
}
test()