Skip to content

Instantly share code, notes, and snippets.

Last active April 14, 2017 05:35
What would you like to do?
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