• Sunday , 31 May 2020

Mixins in JavaScript : Object Oriented Programming Series – Part 8

Code Canyon

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

3d Ocean

Related Posts


  1. Volkan Sağ
    July 1, 2019 at 13:13

    With mixin, each object creates individual methods and properties in ram memory. This may not be very good in terms of performance.

  2. Unavum Marunthum
    July 1, 2019 at 13:13

    Your way of explaining complicated concepts are very easy to understand πŸ™‚ thanks for posting this video. Very useful.

  3. andriy trofimov
    July 1, 2019 at 13:13

    Hello) I would like to say Thank you and keep going, you tutorials are amazing.

  4. obed osei frimpong
    July 1, 2019 at 13:13

    I literally bust out into laughter when he ate the ice cream. πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚

  5. low zhi hao
    July 1, 2019 at 13:13

    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)?

    July 1, 2019 at 13:13

    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?

  7. pinto xavier
    July 1, 2019 at 13:13


  8. krishnasagarapu santhoshi
    July 1, 2019 at 13:13

    how to write a factory function by using function and how to call object.assign and give values

  9. Supriyo Ranjan
    July 1, 2019 at 13:13

    Great Video Sir please add more I am enjoying

  10. Tamal Bhowmik
    July 1, 2019 at 13:13

    Why "console.log(superman.fly().cry().isCrying().isFlying());" showing Uncaught TypeError: superman.fly(…).cry(…).isCrying(…).isFlying is not a function

  11. _ X
    July 1, 2019 at 13:13

    "All human cry, and he will cry too. ("Tell me, do you bleed?… You will.) " changes name to Sith Lord

  12. AymanMorsy
    July 1, 2019 at 13:13

    thanks for great tutorials
    You are the best in the internet

  13. Ashok Pokhrel
    July 1, 2019 at 13:13

    At 10:10 why did you add return this?

  14. cristian dario
    July 1, 2019 at 13:13

    So clear

  15. Developer UI
    July 1, 2019 at 13:13

    Good smile , while having ice-cream , πŸ˜‚πŸ˜‚πŸ˜‚

  16. praveen rathore
    July 1, 2019 at 13:13

    Awesome tutorial again 😊

  17. Chris Seckler
    July 1, 2019 at 13:13

    Why did you return Object.assign() when you could just as easily return a new object?

  18. seenuvasan V
    July 1, 2019 at 13:13


  19. θ˜‡ε•Ÿθ³’
    July 1, 2019 at 13:13

    I'm from Taiwan. Thanks.

  20. HackLikePro
    July 1, 2019 at 13:13

    Can u please add some interesting examples of JavaScript post message?

  21. custom dev
    July 1, 2019 at 13:13

    Hi i wanna convert your video in hindi to help indian peoples in learning

  22. Manendra Rawat
    July 1, 2019 at 13:13

    Simple and great tutorial. Explained very well . Good job.

  23. Mi Ho
    July 1, 2019 at 13:13

    11:15 "… and he can dodge bullets, like aliens" LOL πŸ™‚
    Thanks for a good video. I like that you keep your videos nice and short.

  24. Elin Riahi
    July 1, 2019 at 13:13

    Create examples , thanks

  25. Querensky Lebrun
    July 1, 2019 at 13:13

    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

  26. TheQuestion0mark
    July 1, 2019 at 13:13

    Great examples.. clear and focus

  27. Lliamiw Osdoalb
    July 1, 2019 at 13:13

    Thanks man. πŸ™‚ Your videos helped me a lot in sharpening my skills

  28. Cliff Stamp
    July 1, 2019 at 13:13

    It would be interesting to compare this to class/extends.

  29. G C
    July 1, 2019 at 13:13

    Thank you, the best js tutorial on Youtube

  30. Yassine Abdellaoui
    July 1, 2019 at 13:13

    Looks like the decorator pattern. Doesn't it?

  31. Swapnil Patwa
    July 1, 2019 at 13:13

    saw your all videos and let me tell you, you made all the concepts​ super easy to understand. please don't stop, you are doing a wonderful job.. keep it up. thank you

  32. gabriel babriel
    July 1, 2019 at 13:13


Leave A Comment

You must be logged in to post a comment.