Skip to content

Instantly share code, notes, and snippets.

@goofmint

goofmint/index.ts

Last active Apr 14, 2017
Embed
What would you like to do?
2.md
class Greeter {
constructor(public greeting: string) { }
greet() {
return "<h1>" + this.greeting + "</h1>";
}
};
var greeter = new Greeter("Hello, world!");
document.body.innerHTML = greeter.greet();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment