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
16 responses to “JavaScript ES6 / ES2015 – [04] Classes and Inheritance”
Now you could say, get memberPackage(){…}
…
console.log(mike.memberPackage)
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 🙁
Awesome video, no fucking around and straight to the point. Thank you.
Hi Brad, how about composition?
thanks you. VERY clear and solved my issue with static and super.
thank you. this is awesomeee
how to call the class function in html ??
Thank you brad, I was confused with super() method. this cleared it out, Thanks a ton 🙂
main.js:Uncaught SyntaxError: 'super' keyword unexpected here. I have been getting this error. Can you please help?
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.
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.
Awesome Thanks man
Really cool and simple… Thank you.
Used this tutorial to understand Java Classes. Good work sir! BTW, what's your'e atom syntax theme? Thanks!
Thanks. Nice tut series.
Very nice Brad, thanx.