How to add multiple interface on the same class in javascript.
Adding 1 interface works fine with this :
Myclass.prototype = Object.create(Interface1.prototype);
Like this, I can implement methods which are declare from "Interface1" in my class "Myclass". But I would like to do this twice with another Interface like this :
Myclass.prototype = Object.create(Interface1.prototype);
Myclass.prototype = Object.create(Interface2.prototype);
But I get only the method from "Interface2", and not "Interface1". How can I Have the 2 Interfaces. I read some things about mixin and extend prototype but I don't know how to use this.