This project showcases the mixin design pattern using JavaScript. @naveenk2k and I (@neelkamth) made this for PESU's UE18CS341 (Design Patterns) course.
Clone the repo using one of the following methods:
- SSH:
git clone [email protected]:neelkamath/js-mixins.git
- HTTPS:
git clone https://github.com/neelkamath/js-mixins.git
- Open
object-assign.html
in a browser to see the UI demo which uses theObject.assign()
technique to implement mixins. - Open
multiple-inheritance.html
in a browser to see the printers demo which uses mixins to implement multiple inheritance. - Open
person.html
in a browser to see another example that makes use of mixins.