In this video I go over creating a class in JavaScript. Classes give us a convenient syntax to define state and behavior of objects. To create a class....you write "class" keyword followed by the name of the class. The class body then follows.
The class body can only contain method definitions.
You initialize your object's properties inside the constructor.
The constructor is a special method that is called automatically (when craeting an instance of the object) so that we don't forget to initialize our object.
To use the class you have to use the new keyword
var a = new classname();
Auf dieser Seite können Sie das Online-Video JavaScript Tutorial - Classes mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Struct Feed 06 Oktober 2017 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 380 Mal angesehen und es wurde von 7 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!