Javascript Classes Explained - Javascript Factory Functions - ES6 Private Variables Properties

Javascript Classes Explained - Javascript Factory Functions - ES6 Private Variables Properties

Dave Gray via YouTube Direct link

Using the keyword this

3 of 24

3 of 24

Using the keyword this

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

Javascript Classes Explained - Javascript Factory Functions - ES6 Private Variables Properties

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Classes are "syntactic sugar" in JS
  2. 2 Creating a simple class with a constructor
  3. 3 Using the keyword this
  4. 4 Adding a method to the class
  5. 5 Classes are templates / blueprints for objects
  6. 6 Using the new keyword to create the object
  7. 7 Calling the object's method
  8. 8 Adding parameters to the constructor
  9. 9 Passing multiple parameters to the constructor
  10. 10 Accessing properties with dot notation
  11. 11 getters and setters
  12. 12 A more readable getter and setter method
  13. 13 An array property with a getter and setter
  14. 14 A parent "super" class
  15. 15 Creating a child class with extends
  16. 16 The super keyword
  17. 17 No need to create a parent object in order to create a child object from the classes
  18. 18 A naming convention for private properties
  19. 19 Good intentions but not enforced by the code
  20. 20 Factory Functions
  21. 21 Instantiating a pizza factory object
  22. 22 Factory Functions solve the private properties problem
  23. 23 New additions to JS allow public and private class fields
  24. 24 How much support for public and private class fields?

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.