JavaScript Tutorial
3.33K subscribers
302 photos
17 links
🕹 JavaScript is the 
Programming Language 
for the Web.

🕹 JavaScript can update
and change both 
HTML and CSS.

🕹 JavaScript can calculate, 
manipulate and 
validate data.

Group
@js_group_tut

@javascript_tut
Download Telegram
JavaScript class

💎A JavaScript class is a blueprint for creating objects.

💎A class encapsulates data and functions that manipulate data.

@javascript_tut
ES6 class declaration

💎ES6 introduced a new syntax for declaring a class as shown in this example👆

💎This Person class behaves like the Person type in the previous example.

💎However, instead of using a constructor/prototype pattern, it uses the class keyword.

💎In the Person class, the constructor() is where you can initialize the properties of an instance.

💎JavaScript automatically calls the constructor() method when you instantiate an object of the class.


@javascript_tut
'javascripttutorial. net'