Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
class Person { // name is a private member variable public constructor(private name: string) {} public getName(): string { return this.name; } } const person = new Person("Jane"); console.log(person.getName());
Jane