• Monday , 13 November 2017

JavaScript ES6 / ES2015 – [04] Classes and Inheritance

Code Canyon



In this video we will go over the new ES6 class and inheritance syntax

Source Code – https://github.com/bradtraversy/youtube_es2015_source/tree/master/03_classes

CHECK OUT MY ES2015 COURSE: https://www.eduonix.com/affiliates/id/16-10397

SUPPORT THIS CHANNEL WITH A CUP OF COFFEE PER MONTH:
http://www.patreon.com/traversymedia

ONE TIME DONATIONS:
http://www.paypal.me/traversymedia

Original source

3d Ocean

Related Posts

16 Comments

  1. Klein Venedig
    September 8, 2017 at 08:08

    Now you could say, get memberPackage(){…}

    console.log(mike.memberPackage)

  2. The Shroud
    September 8, 2017 at 08:08

    WTF JS just seems like every language mashed together.
    Edit : How on earth did you learn all this? I just got through a book on JS and feel like I haven't learned a thing 🙁

  3. bob2000and10
    September 8, 2017 at 08:08

    Awesome video, no fucking around and straight to the point. Thank you.

  4. Gilberto Diaz
    September 8, 2017 at 08:08

    Hi Brad, how about composition?

  5. Andre Paradise
    September 8, 2017 at 08:08

    thanks you. VERY clear and solved my issue with static and super.

  6. Adith Widya Pradipta
    September 8, 2017 at 08:08

    thank you. this is awesomeee

  7. Cao Derek
    September 8, 2017 at 08:08

    how to call the class function in html ??

  8. Daksh Miglani
    September 8, 2017 at 08:08

    Thank you brad, I was confused with super() method. this cleared it out, Thanks a ton 🙂

  9. Shikha A
    September 8, 2017 at 08:08

    main.js:Uncaught SyntaxError: 'super' keyword unexpected here. I have been getting this error. Can you please help?

  10. Politicamente Incorrecto
    September 8, 2017 at 08:08

    This tutorial is nice when you have all the classes in a big file. The problem is when locating the classes in different files and importing them with the import command that is not fully compatible on V8. I hope you can create another tutorial with a main file loading classes from files using require or import and help with issues like "unexpected token export". Thanks.

  11. Sankar Rajmen
    September 8, 2017 at 08:08

    In derived classes, super() must be called before you use 'this'. Leaving this out will cause a reference error.
    Just for information. I had faced this issue.may be useful for someone.

  12. Husain Ahmmed
    September 8, 2017 at 08:08

    Awesome Thanks man

  13. Hadi Hallak
    September 8, 2017 at 08:08

    Really cool and simple… Thank you.

  14. Vincent Pena
    September 8, 2017 at 08:08

    Used this tutorial to understand Java Classes. Good work sir! BTW, what's your'e atom syntax theme? Thanks!

  15. kamaboko1
    September 8, 2017 at 08:08

    Thanks. Nice tut series.

  16. Chris Kavanagh
    September 8, 2017 at 08:08

    Very nice Brad, thanx.

Leave A Comment

You must be logged in to post a comment.