Mixins in JavaScript : Object Oriented Programming Series – Part 8




JavaScript mixins to achieve multiple inheritance. By borrowing methods from multiple mixins.

Article and code samples from this tutorial
* http://techsith.com/mixins-in-javascript

Please help me translate this in your native language. Thanks much πŸ™‚
* http://www.youtube.com/timedtext_video?v=DpGuDFK4xss&ref=share

Please be my patreons on patreaon
* https://www.patreon.com/techsith

Follow me for technology updates
* https://facebook.com/techsith
* https://twitter.com/techsith1

Original source


32 responses to “Mixins in JavaScript : Object Oriented Programming Series – Part 8”

  1. Thank you for the tutorial, the pace is perfect and explaination is simple. But I have a question, for the second part, why the variable name(isFlying) can be the same as the function name(isFlying())? Wouldn't there wont be any confusion? For example when we return isFlying, it is returning the function itself? Another question can we use spread operator to achieve the same goal (I am worry about the variable is it by reference or by value)?

  2. That was good explanation

    As explained in previous video, it only does shallow copy. Then how can we copy prototypes as well?
    Without explicitly giving entry in assign function?

    Object.assign(null,jsSkills,engDegree) should also do the same work, or not?

    Will that empty object {} have a prototype?
    How can one create an object without a prototype?

  3. Hi, I thank you for all these tutorials cause they are masterpiece, they help me ny understanding javascript, but i just wondered if you can make one about encapsulation, arguments keyword and the ternary operator
    God bless you

Leave a Reply