English
Open in Telegram

Post 💎The getName() is called a method of the Person class.

21 June 2021
J
JavaScript Tutorial
Photo
💎The getName() is called a method of the Person class. 💎Like a constructor function, you can call the methods of a class using the above syntax: @javascript_tut 'javascripttutorial. net'
3 · 3.4K ·

Nearby in the feed

JJavaScript TutorialES6 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 previoJJavaScript TutorialThe above example creates a new Person object, which will automatically call the constructor() of the Person class: @javascript_tut 'javascripttutorial. net'
this message
JJavaScript TutorialTo verify the fact that classes are special functions, you can use the typeof operator of to check the type of the Person class. @javascript_tut 'javascripttutoJJavaScript TutorialThe john object is also an instance of the Person and Object types @javascript_tut 'javascripttutorial. net'
JJavaScript TutorialJavaScript Tutorial@javascript_tut · channel · Tech
3 041subscribers306posts in the index
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count