ES6 Tutorial - #4 Classes

Published: 13 December 2017
on channel: Code Realm
3,405
75

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.

More on classes at Mozilla web docs https://developer.mozilla.org/en-US/d...

Prototype and Inheritance in ES6 https://hackernoon.com/understanding-...

Want a rock-solid understanding of prototypes? Here's a good read with examples from ES5 http://yehudakatz.com/2011/08/12/unde...


Watch video ES6 Tutorial - #4 Classes online without registration, duration hours minute second in high quality. This video was added by user Code Realm 13 December 2017, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,40 once and liked it 7 people.