Last active
April 14, 2017 05:35
-
-
Save goofmint/f5ede005a41ec4ecaa3d5db06c730ba6 to your computer and use it in GitHub Desktop.
2.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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