JavaScript Tutorial - Classes

Publicado em: 06 Outubro 2017
no canal de: Struct Feed
380
7

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();


Nesta página do site você pode assistir ao vídeo on-line JavaScript Tutorial - Classes duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Struct Feed 06 Outubro 2017, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 380 vezes e gostou 7 espectadores. Boa visualização!