Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mixin in javascript mdn

let calculatorMixin = Base => class extends Base {
  calc() { }
};

let randomizerMixin = Base => class extends Base {
  randomize() { }
};
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #mixin #javascript #mdn
ADD COMMENT
Topic
Name
9+7 =