taking a standard browser as example,
there is the Window class instantiated as window variable
window variable also contains the Window constructor (window.Window)
test this in your (standard) browser:
alert(window instanceof window.Window);
var asd = function(){};
asd.prototype.test = asd;
var x = new asd();
alert(x instanceof x.test);
now, window is also instanceof EventTarget that is stored in window.EventTarget
how to inherit EventTarget in the window object?
I’m answering to myself 😐
there is a better way to do this?