ES6 Tutorial - #4 Classes

preview_player
Показать описание
00:06 "Classes" in JavaScript
01:09 Prototypes
02:24 Class syntax as sugar
03:25 Constructor functions, props & methods (ES5)
08:11 Class alternative (ES6)
10:22 Getters & setters in ES5
14:17 Same methods in ES6
16:27 Inheritance in ES5
19:41 Sub-classing in ES6 (with 'extends')
21:40 Static methods with ES5
22:38 Static keyword in ES6
23:28 Classes are special functions
24:45 No static properties in ES6
26:17 Classes are not callable
28:45 Class declarations vs expressions
29:35 Recap

This one's going to be quite lengthy, but bear with me! We're going to take a deep dive into classes by contrasting the older functional approach from ES5 and the latest class-based form in ES6. Properties, getters, setters, static methods, as well as prototypes and inheritance - you'll get to know them all in this one video! Not to mention a few caveats with regards to the new syntax.

Рекомендации по теме
Комментарии
Автор

Thanks a lot again. I've finally understood the concept of prototypes and all the sugar that comes with the es6 classes. It was valuable 30 minutes man.

JakubGodawa
Автор

Yeah, this video is pretty long but it does answer a lot of little questions I've had like the __proto__ property's use. Alex is very thorough and his desire to cover this topic thoroughly is just who he is and you have to appreciate that and the time it took to put all this together.

haciendadad
Автор

You should have a Udemy Course so I can at least contribute to you; this is the best JavaScript tutorial I've seen in for a long time :D. Good job and keep up the good work.

wshand
Автор

Greatness. I would rename the title to "Classes, ProtoTypes, & Inheritance" simply because you explain more than Classes, but other principles of JavaScript that apply to Classes as well. Stellar content.

Codecrafting
Автор

It would help if you stop throwing around useless words like basically and essentially. Those terms add nothing to your explanation and are quite distracting. Try practicing and recording your explanation so you are more aware of your use of filler words.

crslethem
Автор

a little too fast and too much for me ;)

handymanpawel