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();
На этой странице сайта вы можете посмотреть видео онлайн JavaScript Tutorial - Classes длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Struct Feed 06 Октябрь 2017, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 380 раз и оно понравилось 7 зрителям. Приятного просмотра!