In JavaScript I know you can create an instance of a class using 'new'
new Classe
And how to create an object that is multi-class instance? For example
new Classe, OutraClasse...
I think this might be possible because it warns true
:
var el = document.createElement('a');
alert(el instanceof HTMLElement && el instanceof HTMLAnchorElement);
In addition, el
has more than 2 instances ...