Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 246 Bytes
class Greeter {
constructor(private greeting: string, private name: string) {
}
greet () {
console.log(`${this.greeting}, ${this.name}!`);
}
}
var greeter: Greeter = new Greeter('Hello', 'TypeScript');
greeter.greet();