class - How to Inherit from two or more classes in JavaScript -


so have classes

function node() { node.prototype.setname=function(_n){this.name=_n;}; } function textablenode() { textablenode.prototype.settext=function(_t) {this.text=_t;}; } function attributionalnode() { attributionalnode.prototype.setattribute=function(_a) {this.att=_a;}; } 

all of these inherited node(); how implement new class such universalnode(); have methods?


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

html - href attribute breaking an element -

html - How can i make an element from a bottom stacking context stays in front of another higher stacking context? -