Learn JavaScript #22 | Class Constructor, Instance Variables, and Static Variables

Learn JavaScript #22 | Class Constructor, Instance Variables, and Static Variables

J
JosephDelgadillo
16 Video Views·Sep 3, 2024

Get The Learn to Code Course Bundle!
https://josephdelgadillo.com/product/learn-to-code-course-bundle/

Once our class is created we will need to write a function to call it, and this varies by programming language. In Python you use the init method, in C++, and other C languages, you use the class name, and in JavaScript you use what is called the constructor. This was one the topics when learning object-oriented programming, and maybe I just didn't have the right information, that confused me a bit. So, I hope I have explained constructors, instance variables, and class variables well enough in this video.

Learn more about my courses at https://josephdelgadillo.com

Timestamps