function MyObject(){} Array.prototype={}; MyObject.prototype={}; var a=new Array(); var b=new MyObject(); alert(a.constructor==Array);//true alert(b.constructor==MyObject);//false
function MyObject(){} Array.prototype={}; MyObject.prototype={}; var a=new Array(); var b=new MyObject(); alert(a.constructor==Array);//true alert(b.constructor==MyObject);//false