function Greeter(greeting: string) {
	this.greeting = greeting;
}

Greeter.prototype.greet = function() {
	return "Hello, " + this.greeting;
}



var greeter = new Greeter("world");

var button = document.createElement('button')
button.innerText = "Say Hello"
button.onclick = function() {
	alert(greeter.greet())
}

document.body.appendChild(button)
