December 2017
Beginner
372 pages
10h 32m
English
Methods are pretty straightforward. They're just functions defined inside the class. The following is the example of a method that we'd defined in our Book class earlier:
getFullTitle(): string { return `${this.title} by ${this.author}`;}
Here, the getFullTitle method can be accessed by the class using the same dot syntax.
Read now
Unlock full access